summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-27 02:33:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-27 02:33:01 +0000
commit19b62b2c87ba747de806dd77d494b4b1385798e5 (patch)
tree0a904b43d3fd6d7edd5c5c3ad051e237db1be612
parent627f54deb1e0ca2d0bb674e77d024b2f66d75b57 (diff)
Fixed empty modes issue that emerged after dodgy code was corrected
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1210 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index a25211bde..3b331c4ff 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -1355,7 +1355,7 @@ void handle_mode(char **parameters, int pcnt, userrec *user)
if ((b[z] == '-') || (b[z] == '+'))
b[z] = '\0';
- if ((!strcmp(b,"+")) || (!strcmp(b,"-")))
+ if ((!b[0]) || (!strcmp(b,"+")) || (!strcmp(b,"-")))
return;
WriteTo(user, dest, "MODE %s :%s", dest->nick, b);