From: strutsi Date: Fri, 15 Jul 2005 17:54:00 +0000 (+0100) Subject: Fixed listuser command X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/5727ee887d74ae193ce51e60dfab09737d6138cf Fixed listuser command --- diff --git a/helpmod2/changelist b/helpmod2/changelist index 6b01535e..ca1eee08 100644 --- a/helpmod2/changelist +++ b/helpmod2/changelist @@ -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 diff --git a/helpmod2/hcommands.c b/helpmod2/hcommands.c index d2cf9247..33931e32 100644 --- a/helpmod2/hcommands.c +++ b/helpmod2/hcommands.c @@ -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);