Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-05-14 02:47:08 UTC

Modified files:
  Tag: u2_10_12_branch
     ChangeLog ircd/m_pong.c ircd/s_auth.c

Log message:

Avoid repeating PONG handling that may already have been done.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.98 ircu2.10/ChangeLog:1.710.2.99
--- ircu2.10/ChangeLog:1.710.2.98       Sun May  7 18:55:08 2006
+++ ircu2.10/ChangeLog  Sat May 13 19:46:58 2006
@@ -1,3 +1,9 @@
+2006-05-08  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/m_pong.c (mr_pong): Move cli_lasttime update from here...
+
+       * ircd/s_auth.c (auth_set_pong): ... to here.
+
 2006-05-07  Michael Poole <[EMAIL PROTECTED]>
 
        * include/s_auth.h (auth_ping_timeout): Declare new function.
Index: ircu2.10/ircd/m_pong.c
diff -u ircu2.10/ircd/m_pong.c:1.16.2.4 ircu2.10/ircd/m_pong.c:1.16.2.5
--- ircu2.10/ircd/m_pong.c:1.16.2.4     Sat May  6 16:59:33 2006
+++ ircu2.10/ircd/m_pong.c      Sat May 13 19:46:58 2006
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_pong.c,v 1.16.2.4 2006/05/06 23:59:33 entrope Exp $
+ * $Id: m_pong.c,v 1.16.2.5 2006/05/14 02:46:58 entrope Exp $
  */
 
 /*
@@ -163,7 +163,6 @@
   assert(!IsRegistered(sptr));
 
   ClrFlag(cptr, FLAG_PINGSENT);
-  cli_lasttime(cptr) = CurrentTime;
   return (parc > 1) ? auth_set_pong(cli_auth(sptr), strtoul(parv[parc - 1], 
NULL, 10)) : 0;
 }
 
Index: ircu2.10/ircd/s_auth.c
diff -u ircu2.10/ircd/s_auth.c:1.37.2.11 ircu2.10/ircd/s_auth.c:1.37.2.12
--- ircu2.10/ircd/s_auth.c:1.37.2.11    Sun May  7 18:55:08 2006
+++ ircu2.10/ircd/s_auth.c      Sat May 13 19:46:58 2006
@@ -31,7 +31,7 @@
  */
 /** @file
  * @brief Implementation of DNS and ident lookups.
- * @version $Id: s_auth.c,v 1.37.2.11 2006/05/08 01:55:08 entrope Exp $
+ * @version $Id: s_auth.c,v 1.37.2.12 2006/05/14 02:46:58 entrope Exp $
  */
 #include "config.h"
 
@@ -1018,6 +1018,7 @@
                ":To connect, type /QUOTE PONG %u", auth->cookie);
     return 0;
   }
+  cli_lasttime(auth->client) = CurrentTime;
   FlagClr(&auth->flags, AR_NEEDS_PONG);
   return check_auth_finished(auth);
 }
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to