Пример #1
0
void a_network_deinit(void)
{
	irc_hook_del(alicorn.h_incoming, "PING", on_PING);
	irc_hook_del(alicorn.h_incoming, "JOIN", on_JOIN);
	irc_hook_del(alicorn.h_incoming, "PART", on_PART);

	irc_hook_del(alicorn.h_incoming, "TOPIC", on_topic_update);
	irc_hook_del(alicorn.h_incoming, "331", on_topic_update);
	irc_hook_del(alicorn.h_incoming, "332", on_topic_update);

	irc_hook_del(alicorn.h_incoming, "001", on_RPL_WELCOME);
	irc_hook_del(alicorn.h_incoming, "005", on_RPL_ISUPPORT);
	irc_hook_del(alicorn.h_incoming, "375", on_RPL_MOTDSTART);
	irc_hook_del(alicorn.h_incoming, "372", on_RPL_MOTD);
	irc_hook_del(alicorn.h_incoming, "376", on_RPL_ENDOFMOTD);
	irc_hook_del(alicorn.h_incoming, "422", on_ERR_NOMOTD);

	irc_hook_del(alicorn.h_incoming, "311", on_RPL_WHOISUSER);

	irc_hook_del(alicorn.h_db, "NET", db_net);

	mowgli_hook_dissociate("db.save.acct", db_save_acct);
	mowgli_hook_dissociate("client.add", add_client);
	mowgli_hook_dissociate("client.del", del_client);
}
Пример #2
0
Файл: ping.c Проект: alyx/sigyn
void _moddeinit(UNUSED module_unload_intent_t intent)
{
    mowgli_hook_dissociate("PING", handle_ping);
}