Esempio n. 1
0
int module_init(void *module)
{
	addrwusrcommand(module, "DEOP", msg_deop, 99);
	addrwusrcommand(module, "OP", msg_op, 99);
	addrwusrcommand(module, "TOPIC", msg_topic, 99);
	addrwusrcommand(module, "MODE", msg_mode, 99);
	addrwusrcommand(module, "JOIN", msg_join, 0);
	addusrcommand(module, "PART", msg_part, 0);
	addrwusrcommand(module, "AUTOOP", msg_autoop, 0);
	addrwusrcommand(module, "KICK", msg_kick, 99);
	addrwusrcommand(module, "OPUSER", msg_opuser, 0);
	addtrigger(module, EV_JOIN, user_join);
	return (0);
}
Esempio n. 2
0
void 
init_usercommands()
{
	usercommandlist = NULL;
	
	addusrcommand	(NULL, "ACCESS",	msg_access,		USER);
	addrwusrcommand	(NULL, "ACTION",	msg_action,		USER);
	addusrcommand	(NULL, "BOTUPTIME",	msg_botuptime,	USER);
	addusrcommand	(NULL, "SYSUPTIME",	msg_sysuptime,	USER);
	addusrcommand	(NULL, "UTF8",		msg_utf8,		USER);
	addrwusrcommand	(NULL, "HU",		msg_hu,			USER);
	addrwusrcommand	(NULL, "FRESHAIR",	msg_freshair,	USER);
	addrwusrcommand	(NULL, "FRESHHU",	msg_freshhu,	USER);
	addrwusrcommand	(NULL, "SAY",		msg_say,		USER);
	addrwusrcommand	(NULL, "PELUCHE",	msg_peluche,	USER);
	addrwusrcommand	(NULL, "GOOGLE",	msg_google,		USER);
	addrwusrcommand	(NULL, "P**N",		msg_porn,		USER);
	addrwusrcommand	(NULL, "YOUTUBE",	msg_youtube,	USER);
	addrwusrcommand (NULL, "METEO",		msg_meteo,		USER);
	addrwusrcommand (NULL, "ANSA",		msg_ansa,		USER);
	addusrcommand	(NULL, "TIME",		msg_time,		USER);
	addusrcommand	(NULL, "VERSION",	msg_version, 	USER);
	addusrcommand 	(NULL, "HELP",		msg_help,		USER);
	addusrcommand	(NULL, "CTCP",		msg_ctcp,		ADMIN);
	addusrcommand	(NULL, "IDENTIFY",	msg_identify, 	ADMIN);
	addrwusrcommand	(NULL, "JOIN",		msg_join,		ADMIN);
	addrwusrcommand	(NULL, "KICK",		msg_kick,		ADMIN);
	addusrcommand	(NULL, "NICK",		msg_nick,		ADMIN);
	addrwusrcommand	(NULL, "PART",		msg_part,		ADMIN);
	addusrcommand	(NULL, "RAW",		msg_raw,		ADMIN);
	addusrcommand	(NULL, "RELOAD",	msg_reload, 	ADMIN);
	addusrcommand	(NULL, "SHUTDOWN",	msg_shutdown, 	ADMIN);
	/* special commands to prevent lamer behaviour */
	addusrcommand	(NULL, "LIST",		msg_list,		USER);
	addusrcommand	(NULL, "LISTA",		msg_lista,		USER);
	/* melabot admin commands */
	addusrcommand	(NULL, "LISTUSERS",	msg_listusers,	ADMIN);
}