Revert last change -- read_packet() makes it fail.
authorMichael Poole <mdpoole@troilus.org>
Sat, 6 May 2006 23:59:33 +0000 (23:59 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sat, 6 May 2006 23:59:33 +0000 (23:59 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1648 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_pong.c

index b4919f118d515c9bcf2501329e8ced338198e264..fc55856c0f5e9a9ca0f6eded760d22ae1b6c79a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,3 @@
-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.
index 60c22fbeff364e92f0ff16147ef5848b3ebe9a78..2ecb60979e4759e48e48e20e614510a1df6e0098 100644 (file)
@@ -162,8 +162,6 @@ int mr_pong(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   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;