]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/mod-sockcheck.c
Minor typo in previous commit where returning 0 when it should have been 1 from opser...
[irc/evilnet/x3.git] / src / mod-sockcheck.c
index 3fbb9fdc78f0f26e55c719caa1c8ac4523c1eff4..1ba86fb36c222087c29bd24d7f10d33e5359ac0f 100644 (file)
@@ -926,7 +926,7 @@ sockcheck_add_test(const char *desc)
 }
 
 static void
-sockcheck_shutdown(void)
+sockcheck_shutdown(UNUSED_ARG(void *extra))
 {
     unsigned int n;
 
@@ -1098,7 +1098,7 @@ static MODCMD_FUNC(cmd_stats_proxycheck)
 }
 
 static int
-sockcheck_new_user(struct userNode *user) {
+sockcheck_new_user(struct userNode *user, UNUSED_ARG(void *extra)) {
     /* If they have a bum IP, or are bursting in, don't proxy-check or G-line them. */
     if (irc_in_addr_is_valid(user->ip)
         && !irc_in_addr_is_loopback(user->ip)
@@ -1170,7 +1170,7 @@ sockcheck_init(void)
 {
     PC_LOG = log_register_type("ProxyCheck", "file:proxycheck.log");
     conf_register_reload(sockcheck_read_conf);
-    reg_exit_func(sockcheck_shutdown);
+    reg_exit_func(sockcheck_shutdown, NULL);
     _sockcheck_init();
     message_register_table(msgtab);
 
@@ -1179,7 +1179,7 @@ sockcheck_init(void)
     modcmd_register(sockcheck_module, "hostscan", cmd_hostscan, 2, 0, "level", "650", NULL);
     modcmd_register(sockcheck_module, "clearhost", cmd_clearhost, 2, 0, "level", "650", NULL);
     modcmd_register(sockcheck_module, "stats proxycheck", cmd_stats_proxycheck, 0, 0, NULL);
-    reg_new_user_func(sockcheck_new_user);
+    reg_new_user_func(sockcheck_new_user, NULL);
     return 1;
 }