CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11_05
Commit time: 2003-06-27 10:51:23 UTC
Modified files:
Tag: u2_10_11_05
ChangeLog ircd/ircd.c
Log message:
Author: hikari <[EMAIL PROTECTED]>
Log message:
Also update next_check if an unregistered client's expire time is less
than the current next_check.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.128.2.23 ircu2.10/ChangeLog:1.290.2.128.2.24
--- ircu2.10/ChangeLog:1.290.2.128.2.23 Thu Jun 26 21:47:07 2003
+++ ircu2.10/ChangeLog Fri Jun 27 03:51:12 2003
@@ -1,3 +1,7 @@
+2003-06-27 hikari <[EMAIL PROTECTED]>
+ * ircd/ircd.c: After thought, update the next check time based on
+ when an unregistered client should expire.
+
2003-06-27 Kevin L Mitchell <[EMAIL PROTECTED]>
* ircd/s_user.c (register_user): stomp on a warning
Index: ircu2.10/ircd/ircd.c
diff -u ircu2.10/ircd/ircd.c:1.51.2.10.4.2 ircu2.10/ircd/ircd.c:1.51.2.10.4.3
--- ircu2.10/ircd/ircd.c:1.51.2.10.4.2 Sun Jun 22 08:28:13 2003
+++ ircu2.10/ircd/ircd.c Fri Jun 27 03:51:13 2003
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: ircd.c,v 1.51.2.10.4.2 2003/06/22 15:28:13 shad0w Exp $
+ * $Id: ircd.c,v 1.51.2.10.4.3 2003/06/27 10:51:13 shad0w Exp $
*/
#include "config.h"
@@ -395,7 +395,11 @@
continue;
} else {
/* OK, they still have enough time left, so we'll just skip to the
- * next client -- hikari */
+ * next client. Set the next check to be when their time is up, if
+ * that's before the currently scheduled next check -- hikari */
+ expire = cli_firsttime(cptr) + max_ping;
+ if (expire < next_check)
+ next_check = expire;
continue;
}
}
----------------------- End of diff -----------------------