From: Perry Lorier Date: Sat, 1 Apr 2000 07:02:24 +0000 (+0000) Subject: Author: Isomer X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=25ab1cf51796e2e0345069c652a1f752b0960ca4;hp=f36a41c5747b60517095679dec0c166ae470b3b9;p=ircu2.10.12-pk.git Author: Isomer Log message: * Fix ping bugs! git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@123 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index a80b82f..29b77ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2000-03-30 Perry Lorier + * ircd/m_pong.c: Fix ping timeout bugs + 2000-03-30 Perry Lorier * ircd/channel.c: Bans had CurrentTime in their when field instead of TStime() @@ -267,7 +270,7 @@ # # ChangeLog for ircu2.10.11 # -# $Id: ChangeLog,v 1.52 2000-04-01 05:22:33 isomer Exp $ +# $Id: ChangeLog,v 1.53 2000-04-01 07:02:24 isomer Exp $ # # Insert new changes at beginning of the change list. # diff --git a/ircd/m_pong.c b/ircd/m_pong.c index d5fee34..bfe558c 100644 --- a/ircd/m_pong.c +++ b/ircd/m_pong.c @@ -156,6 +156,7 @@ int mr_pong(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) assert(!IsRegistered(sptr)); cptr->flags &= ~FLAGS_PINGSENT; + cptr->lasttime = CurrentTime; /* * Check to see if this is a PONG :cookie reply from an * unregistered user. If so, process it. -record @@ -189,6 +190,7 @@ int m_pong(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) assert(0 != cptr); assert(cptr == sptr); cptr->flags &= ~FLAGS_PINGSENT; + cptr->lasttime = CurrentTime; return 0; }