summaryrefslogtreecommitdiff
path: root/src/cmd_who.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-02 19:34:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-02 19:34:57 +0000
commitc3b861b2507dd2ef52802c69a2d737925846e2e0 (patch)
tree0acd160336f53426b273af935f3ecb5189117cee /src/cmd_who.cpp
parentd7c9583c8ec819444efdb326d15b2ff92a881089 (diff)
Added IS_SINGLE, see comment in include/inspircd.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3438 e03df62e-2008-0410-955e-edbf42e46eb7
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++)
{