X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmod-sockcheck.c;h=ab68da07cd558aed9f41112bd544617eee4cd928;hb=HEAD;hp=cd78ba8da137ee55a9d3909ba6c2d9c3aa5f8775;hpb=ca4c9af1d4c8fe6a8e3c19ded3ecb762bb810f07;p=srvx.git diff --git a/src/mod-sockcheck.c b/src/mod-sockcheck.c index cd78ba8..ab68da0 100644 --- a/src/mod-sockcheck.c +++ b/src/mod-sockcheck.c @@ -206,7 +206,7 @@ sockcheck_issue_gline(sockcheck_cache_info sci) char addr[IRC_NTOP_MAX_SIZE + 2] = {'*', '@', '\0'}; irc_ntop(addr + 2, sizeof(addr) - 2, &sci->addr); log_module(PC_LOG, LOG_INFO, "Issuing gline for client at %s: %s", addr + 2, sci->reason); - gline_add("ProxyCheck", addr, sockcheck_conf.gline_duration, sci->reason, now, now, 1); + gline_add("ProxyCheck", addr, sockcheck_conf.gline_duration, sci->reason, now, now, 0, 1); } static struct sockcheck_client * @@ -1099,14 +1099,13 @@ static MODCMD_FUNC(cmd_stats_proxycheck) } } -static int +static void sockcheck_new_user(struct userNode *user) { /* 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) && !user->uplink->burst) sockcheck_queue_address(user->ip); - return 0; } static void