X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/3a196bdbc4782e5437d23085a01e24e237a04e0e..1ef37f9e521eaa2673d792badff62c25681a009e:/src/mod-snoop.c?ds=sidebyside diff --git a/src/mod-snoop.c b/src/mod-snoop.c index aefdcd1..15b5720 100644 --- a/src/mod-snoop.c +++ b/src/mod-snoop.c @@ -120,7 +120,7 @@ snoop_del_user(struct userNode *user, struct userNode *killer, const char *why, } static void -snoop_auth(struct userNode *user, UNUSED_ARG(struct handle_info *old_handle)) { +snoop_auth(struct userNode *user, UNUSED_ARG(struct handle_info *old_handle), UNUSED_ARG(void *extra)) { if (!snoop_cfg.enabled) return; if (user->uplink->burst && !snoop_cfg.show_bursts) return; if (user->handle_info) { @@ -305,14 +305,14 @@ snoop_conf_read(void) { } void -snoop_cleanup(void) { +snoop_cleanup(UNUSED_ARG(void *extra)) { snoop_cfg.enabled = 0; unreg_del_user_func(snoop_del_user, NULL); } int snoop_init(void) { - reg_exit_func(snoop_cleanup); + reg_exit_func(snoop_cleanup, NULL); conf_register_reload(snoop_conf_read); reg_nick_change_func(snoop_nick_change, NULL); reg_join_func(snoop_join, NULL); @@ -320,7 +320,7 @@ snoop_init(void) { reg_kick_func(snoop_kick, NULL); reg_new_user_func(snoop_new_user, NULL); reg_del_user_func(snoop_del_user, NULL); - reg_auth_func(snoop_auth); + reg_auth_func(snoop_auth, NULL); reg_channel_mode_func(snoop_channel_mode, NULL); reg_user_mode_func(snoop_user_mode, NULL); reg_oper_func(snoop_oper, NULL);