git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1647
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2006-05-06 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/m_pong.c (mr_pong): No need to do any work if the client
+ PONGs with no pending PING.
+
2006-05-06 Michael Poole <mdpoole@troilus.org>
* ircd/s_auth.c (AuthRequestFlag): Add AR_PASSWORD_CHECKED.
assert(cptr == sptr);
assert(!IsRegistered(sptr));
+ if (!HasFlag(cptr, FLAG_PINGSENT))
+ return 0;
ClrFlag(cptr, FLAG_PINGSENT);
cli_lasttime(cptr) = CurrentTime;
return (parc > 1) ? auth_set_pong(cli_auth(sptr), strtoul(parv[parc - 1], NULL, 10)) : 0;
{
assert(0 != cptr);
assert(cptr == sptr);
+
ClrFlag(cptr, FLAG_PINGSENT);
cli_lasttime(cptr) = CurrentTime;
return 0;