From fe7e9df87467447f02ff96dfb2c1027a0e0c2fcd Mon Sep 17 00:00:00 2001 From: Perry Lorier Date: Sun, 2 Jul 2000 01:06:17 +0000 Subject: [PATCH] Author: Isomer Log message: Fixed adding remote clients with their servers IP. Doh! Stupid stupid stupid. Thanks Hektik for finding this one :) git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@263 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 7 ++++++- ircd/s_user.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5dcb425..bef1a32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-07-02 Perry Lorier + * ircd/s_misc.c: Fixed remote IPcheck bug. Ok, I'm a moron, so sue + me. Thanks to Hektik, thanks thanks thanks thanks + thanks thanks thanks thanks thank thanks thank thanks + 2000-07-01 Perry Lorier * ircd/s_conf.c: "Fixed" the "bug" where people would "evade" K:'s. * ircd/s_conf.c, include/IPcheck.h: Fixed compile warnings. @@ -1255,7 +1260,7 @@ # # ChangeLog for ircu2.10.11 # -# $Id: ChangeLog,v 1.152 2000-07-01 12:37:02 isomer Exp $ +# $Id: ChangeLog,v 1.153 2000-07-02 01:06:17 isomer Exp $ # # Insert new changes at beginning of the change list. # diff --git a/ircd/s_user.c b/ircd/s_user.c index 1b42061..1c93ad4 100644 --- a/ircd/s_user.c +++ b/ircd/s_user.c @@ -781,7 +781,7 @@ int set_nick_name(struct Client* cptr, struct Client* sptr, && GlineLastMod(agline) > lastmod && !IsBurstOrBurstAck(cptr)) gline_resend(cptr, agline); } - if (!ip_registry_remote_connect(sptr)) { + if (!ip_registry_remote_connect(new_client)) { sendcmdto_one(&me, CMD_KILL, new_client, "%C :%s (Too many connections from your host -- Ghost)", new_client,me.name); return exit_client(cptr,new_client,&me,"Too many connections from your host -- throttled"); -- 2.20.1