]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fixed listuser command
authorstrutsi <redacted>
Fri, 15 Jul 2005 17:54:00 +0000 (18:54 +0100)
committerstrutsi <redacted>
Fri, 15 Jul 2005 17:54:00 +0000 (18:54 +0100)
helpmod2/changelist
helpmod2/hcommands.c

index 6b01535e713b33fa1b107e88018573edc3c57830..ca1eee0895f4bc90a2b829385e39b3e6b9f03826 100644 (file)
@@ -281,3 +281,5 @@ Tickets command wording changed a bit
 Fixed a typo in showticket command
 Checkchannel does not show channel topic for +i/+k channels
 Some command descriptions changed
+Fixes to weekly stats
+A bug in listuser command was fixed
index d2cf9247e0c307d16db8f73ae090dcde9dac9ef5..33931e32b42e9c162d4ddd04693a28de07767dfc 100644 (file)
@@ -465,7 +465,7 @@ static void helpmod_cmd_listuser (huser *sender, channel* returntype, char* ostr
     else
         pattern = argv[0];
 
-    if (lvl > 0)
+    if (lvl >= 0)
         helpmod_reply(sender, returntype, "%s accounts matching pattern %s: (account name, userlevel, expires in)", hlevel_name(lvl), pattern);
     else
         helpmod_reply(sender, returntype, "Accounts matching pattern %s: (account name, userlevel, expires in)", pattern);
@@ -473,14 +473,14 @@ static void helpmod_cmd_listuser (huser *sender, channel* returntype, char* ostr
     {
         if (strregexp(hack->name->content, pattern))
         {
-            if (lvl > 0 && hack->level != lvl)
+            if (lvl >= 0 && hack->level != lvl)
                 continue;
             timer = hack->last_activity + HELPMOD_ACCOUNT_EXPIRATION[hack->level];
             helpmod_reply(sender, returntype, "%-16s %-32s %s", hack->name->content, hlevel_name(hack->level), asctime(localtime(&timer)));
             count++;
         }
     }
-    if (lvl > 0)
+    if (lvl >= 0)
         helpmod_reply(sender, returntype, "%s accounts matching pattern %d", hlevel_name(lvl), count);
     else
         helpmod_reply(sender, returntype, "Accounts matching pattern %d", count);