summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 30000dfe2..f14c3bcb5 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -1460,10 +1460,10 @@ void cmd_mode::Handle (char **parameters, int pcnt, userrec *user)
if ((b[z] == '-') || (b[z] == '+'))
b[z] = '\0';
- if ((!b[0]) || (!strcmp(b,"+")) || (!strcmp(b,"-")))
+ if ((!*b) || (IS_SINGLE(b,"+")) || (IS_SINGLE(b,"-")))
return;
- if (strcmp(b,""))
+ if (*b)
{
WriteTo(user, dest, "MODE %s :%s", dest->nick, b);
FOREACH_MOD(I_OnMode,OnMode(user, dest, TYPE_USER, b));
@@ -1711,7 +1711,7 @@ void ModeParser::ServerMode(char **parameters, int pcnt, userrec *user)
if ((b[z] == '-') || (b[z] == '+'))
b[z] = '\0';
- if ((!b[0]) || (!strcmp(b,"+")) || (!strcmp(b,"-")))
+ if ((!*b) || (IS_SINGLE(b,'+')) || (IS_SINGLE(b,'-')))
return;
if (*b)