X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/995043b458af98a7757d65c9b5e8ad1bbe6b7a87..30874d6682a37bc1d8f3d76fd90afde6a0f3fce7:/src/mod-sockcheck.c diff --git a/src/mod-sockcheck.c b/src/mod-sockcheck.c index 3fbb9fd..1ba86fb 100644 --- a/src/mod-sockcheck.c +++ b/src/mod-sockcheck.c @@ -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; }