summaryrefslogtreecommitdiff
path: root/src/cmd_who.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_who.cpp')
-rw-r--r--src/cmd_who.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp
index 624006758..307e86d91 100644
--- a/src/cmd_who.cpp
+++ b/src/cmd_who.cpp
@@ -70,7 +70,7 @@ void cmd_who::Handle (char **parameters, int pcnt, userrec *user)
/* theres more to do here, but for now just close the socket */
if (pcnt == 1)
{
- if ((!strcmp(parameters[0],"0")) || (!strcmp(parameters[0],"*")))
+ if ((IS_SINGLE(parameters[0],'0)) || (IS_SINGLE(parameters[0],'*')))
{
if ((user->chans.size()) && (user->chans[0].channel))
{
@@ -165,7 +165,7 @@ void cmd_who::Handle (char **parameters, int pcnt, userrec *user)
}
if (pcnt == 2)
{
- if ((!strcmp(parameters[0],"0")) || (!strcmp(parameters[0],"*")) && (!strcmp(parameters[1],"o")))
+ if ((IS_SINGLE(parameters[0],'0')) || (IS_SINGLE(parameters[0],'*')) && (IS_SINGLE(parameters[1],'o')))
{
for (std::vector<userrec*>::iterator i = all_opers.begin(); i != all_opers.end(); i++)
{