X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fs_user.c;h=ff7cb118c38b8e02eb9e5f6982578ca77d650098;hb=764b1a003c21fcc11e38ac70502f94fe243d833b;hp=a7c0c03e7c150ae575ec68eb038b88db8f6f222c;hpb=85c7e2ac52692c4b67cca150742113727d249d9c;p=ircu2.10.12-pk.git diff --git a/ircd/s_user.c b/ircd/s_user.c index a7c0c03..ff7cb11 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -457,7 +457,7 @@ int register_user(struct Client *cptr, struct Client *sptr, get_client_name(sptr, HIDE_IP)); } ++ServerStats->is_ref; - IPcheck_connect_fail(sptr->ip); + ip_registry_connect_fail(sptr->ip.s_addr); return exit_client(cptr, sptr, &me, "Sorry, your connection class is full - try " "again later or try another server"); @@ -476,7 +476,7 @@ int register_user(struct Client *cptr, struct Client *sptr, /* Can this ever happen? */ case ACR_BAD_SOCKET: ++ServerStats->is_ref; - IPcheck_connect_fail(sptr->ip); + ip_registry_connect_fail(sptr->ip.s_addr); return exit_client(cptr, sptr, &me, "Unknown error -- Try again"); } ircd_strncpy(user->host, sptr->sockhost, HOSTLEN); @@ -498,7 +498,7 @@ int register_user(struct Client *cptr, struct Client *sptr, && strcmp(sptr->passwd, aconf->passwd)) { ServerStats->is_ref++; - IPcheck_connect_fail(sptr->ip); + ip_registry_connect_fail(sptr->ip.s_addr); send_reply(sptr, ERR_PASSWDMISMATCH); return exit_client(cptr, sptr, &me, "Bad Password"); } @@ -508,7 +508,7 @@ int register_user(struct Client *cptr, struct Client *sptr, */ if (find_kill(sptr)) { ServerStats->is_ref++; - IPcheck_connect_fail(sptr->ip); + ip_registry_connect_fail(sptr->ip.s_addr); return exit_client(cptr, sptr, &me, "K-lined"); } /* @@ -627,7 +627,7 @@ int register_user(struct Client *cptr, struct Client *sptr, nextping = CurrentTime; if (sptr->snomask & SNO_NOISY) set_snomask(sptr, sptr->snomask & SNO_NOISY, SNO_ADD); - IPcheck_connect_succeeded(sptr); + ip_registry_connect_succeeded(sptr); } else /* if (IsServer(cptr)) */ @@ -656,7 +656,7 @@ int register_user(struct Client *cptr, struct Client *sptr, if (IsBurst(acptr) || Protocol(acptr) < 10) break; } - if (!IPcheck_remote_connect(sptr, (acptr != &me))) + if (!ip_registry_check_remote(sptr, (acptr != &me))) /* * We ran out of bits to count this */