]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/mod-snoop.c
Minor typo in previous commit where returning 0 when it should have been 1 from opser...
[irc/evilnet/x3.git] / src / mod-snoop.c
index aefdcd1023ffc6409a6ea1ff4abf19fbf91a00f3..15b57201071e188205cef274750cefe81f508346 100644 (file)
@@ -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);