From 19b62b2c87ba747de806dd77d494b4b1385798e5 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 27 Apr 2005 02:33:01 +0000 Subject: 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 --- src/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3