Fixes pesky negative suspend expires
Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnuworld/gnuworld/ChangeLog,v
retrieving revision 1.2
diff -b -u -d -r1.2 ChangeLog
--- ChangeLog 8 Aug 2002 03:12:35 -0000 1.2
+++ ChangeLog 8 Dec 2002 10:13:07 -0000
@@ -1,3 +1,9 @@
+2002-10-01 23:22 Alexander Maassen <[EMAIL PROTECTED]>
+
+ * mod.cservice/ACCESSCommand.cc mod.cservice/SUSPENDCommand.cc
+ mod.cservice/LOGINCommand.cc mod.cservice/cservice.cc:
+ Fixed the pesky negative suspend expire issue.
+
2002-08-07 21:11 Daniel Karrels <[EMAIL PROTECTED]>
* mod.scanner/scanner.cc, src/main.cc, src/server.cc:
Index: mod.cservice/ACCESSCommand.cc
===================================================================
RCS file: /cvsroot/gnuworld/gnuworld/mod.cservice/ACCESSCommand.cc,v
retrieving revision 1.43
diff -b -u -d -r1.43 ACCESSCommand.cc
--- mod.cservice/ACCESSCommand.cc 23 May 2002 17:43:12 -0000 1.43
+++ mod.cservice/ACCESSCommand.cc 8 Dec 2002 10:13:08 -0000
@@ -342,7 +342,7 @@
autoMode.c_str()
);
- if(suspend_expires != 0)
+ if( suspend_expires > bot->currentTime() )
{
unsigned int suspendLevel = atoi(bot->SQLDb->GetValue(i, 8));
Index: mod.cservice/LOGINCommand.cc
===================================================================
RCS file: /cvsroot/gnuworld/gnuworld/mod.cservice/LOGINCommand.cc,v
retrieving revision 1.47
diff -b -u -d -r1.47 LOGINCommand.cc
--- mod.cservice/LOGINCommand.cc 25 Nov 2002 03:53:16 -0000 1.47
+++ mod.cservice/LOGINCommand.cc 8 Dec 2002 10:13:08 -0000
@@ -327,7 +327,7 @@
* (*smack* Ace)
*/
- if(resultPtr->suspend_expires > 0)
+ if(resultPtr->suspend_expires > bot->currentTime() )
{
continue;
}
Index: mod.cservice/SUSPENDCommand.cc
===================================================================
RCS file: /cvsroot/gnuworld/gnuworld/mod.cservice/SUSPENDCommand.cc,v
retrieving revision 1.22
diff -b -u -d -r1.22 SUSPENDCommand.cc
--- mod.cservice/SUSPENDCommand.cc 5 Jan 2002 01:00:49 -0000 1.22
+++ mod.cservice/SUSPENDCommand.cc 8 Dec 2002 10:13:08 -0000
@@ -224,7 +224,7 @@
return true;
}
-if (aLevel->getSuspendExpire() != 0)
+if (aLevel->getSuspendExpire() > bot->currentTime())
{
bot->Notice(theClient,
bot->getResponse(theUser,
Index: mod.cservice/cservice.cc
===================================================================
RCS file: /cvsroot/gnuworld/gnuworld/mod.cservice/cservice.cc,v
retrieving revision 1.223
diff -b -u -d -r1.223 cservice.cc
--- mod.cservice/cservice.cc 19 Oct 2002 20:08:06 -0000 1.223
+++ mod.cservice/cservice.cc 8 Dec 2002 10:13:08 -0000
@@ -1131,7 +1133,7 @@
* suspended too.
*/
-if (theLevel->getSuspendExpire() != 0)
+if (theLevel->getSuspendExpire() > currentTime())
{
// Send them a notice.
if (theUser->isAuthed() && notify)