Log message:
oops! Someone forgot to put m_pong into the parse array. Wasn't me! So
undernet happily ignores all pongs... What fun!
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@126
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2000-03-30 Perry Lorier <isomer@coders.net>
+ * ircd/parse.c: fixed mystifying ping bug thats been plaguing us
+ for so long. Remember: m_ping MUST be in the parse array. :)
+
2000-03-30 Perry Lorier <isomer@coders.net>
* ircd/ircd.c: test in check_pings was wrong. I move that we
disallow cvs commit after 10pm localtime....
#
# ChangeLog for ircu2.10.11
#
-# $Id: ChangeLog,v 1.55 2000-04-01 08:02:33 isomer Exp $
+# $Id: ChangeLog,v 1.56 2000-04-01 08:54:11 isomer Exp $
#
# Insert new changes at beginning of the change list.
#
/* Ok, the thing that will happen most frequently, is that someone will
* have sent something recently. Cover this first for speed.
*/
- if (CurrentTime-cptr->lasttime <= max_ping) {
+ if (CurrentTime-cptr->lasttime < max_ping) {
expire=cptr->lasttime + max_ping;
if (next_check<expire)
next_check=expire;
}
/* Quit the client after max_ping*2 - they should have answered by now */
- if (CurrentTime-cptr->lasttime > (max_ping*2) ) {
+ if (CurrentTime-cptr->lasttime >= (max_ping*2) ) {
/* If it was a server, then tell ops about it. */
if (IsServer(cptr) || IsConnecting(cptr) || IsHandshake(cptr))
cptr->lasttime = CurrentTime - max_ping;
if (IsUser(cptr))
- sendto_one(cptr, "PING :%s", me.name);
+ sendto_one(cptr, MSG_PING " :%s", me.name);
else
sendto_one(cptr, "%s " TOK_PING " :%s", NumServ(&me), me.name);
} /* of if not ping sent... */
TOK_PONG,
0, MAXPARA, MFLG_SLOW | MFLG_UNREG, 0,
/* UNREG, CLIENT, SERVER, OPER, SERVICE */
- { mr_pong, m_ignore, ms_pong, m_ignore, m_ignore }
+ { mr_pong, m_pong, ms_pong, m_ignore, m_ignore }
},
{
MSG_ERROR,