]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added getrlimit/setrlimit to set process limits to allow a core dump
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 11 Apr 2005 12:18:19 +0000 (12:18 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 11 Apr 2005 12:18:19 +0000 (12:18 +0000)
Fixed m_setidle to only allow you to set a positive integer as the idle time
Removed some logging from wildcard.cpp

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1041 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_setidle.cpp

index c4d812d0068f022104e7f0b9f51b6f178a411dfe..658e6ad1f1040365586d00910306bf3fa2b70457 100644 (file)
@@ -26,6 +26,11 @@ Server *Srv = NULL;
         
 void handle_setidle(char **parameters, int pcnt, userrec *user)
 {
+       if (atoi(parameters[0]) < 1)
+       {
+               WriteServ(user->fd,"943 %s :Invalid idle time.",user->nick);
+               return;
+       }
        user->idle_lastmsg = time(NULL) - atoi(parameters[0]);
        // minor tweak - we cant have signon time shorter than our idle time!
        if (user->signon > user->idle_lastmsg)