X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/ee8c50bd99dd250596c44c78baee59128a9cbdb6..30874d6682a37bc1d8f3d76fd90afde6a0f3fce7:/src/mod-snoop.c diff --git a/src/mod-snoop.c b/src/mod-snoop.c index 2e6c0c9..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) { @@ -133,7 +133,7 @@ snoop_auth(struct userNode *user, UNUSED_ARG(struct handle_info *old_handle)) { } static void -snoop_user_mode(struct userNode *user, const char *mode_change) { +snoop_user_mode(struct userNode *user, const char *mode_change, UNUSED_ARG(void *extra)) { if (!snoop_cfg.enabled) return; if (user->uplink->burst && !snoop_cfg.show_bursts) return; if (!mode_change[1]) return; /* warning there has to be atleast one char in the buffer */ @@ -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,9 +320,9 @@ 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); + reg_user_mode_func(snoop_user_mode, NULL); reg_oper_func(snoop_oper, NULL); return 1;