- opercmd.c:command_parse(): fixed braindead 'logic'
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Tue, 23 Dec 2014 18:35:23 +0000 (18:35 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Tue, 23 Dec 2014 18:35:23 +0000 (18:35 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5088 82007160-df01-0410-b94d-b575c5fd34c7

src/opercmd.c

index 536b59afa2cc24a594cdca5bd5ea48bfb2dcf16a..4f6cdc1755f9e4efe012ca6124fb02d4bdb3867e 100644 (file)
@@ -169,12 +169,11 @@ void command_parse(char *command, char *msg, struct ChannelConf *target,
 
    /* Skip past the botname/!all */
    command = strchr(command, ' ');
-
+/* TBD: skip leading spaces if there's more than one */
    /* There is no command OR
       there is at least nothing
       past that first space.  */
-   if(command == NULL ||
-         command++ == NULL)
+   if (command == NULL || *++command == '\0')
       return;