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
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)