From: michael Date: Tue, 23 Dec 2014 18:35:23 +0000 (+0000) Subject: - opercmd.c:command_parse(): fixed braindead 'logic' X-Git-Tag: 1.0.0beta1~50 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=6d37cfbbb02f8c985850c42facb87b6d40f03e85;p=hopm.git - opercmd.c:command_parse(): fixed braindead 'logic' git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5088 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/opercmd.c b/src/opercmd.c index 536b59a..4f6cdc1 100644 --- a/src/opercmd.c +++ b/src/opercmd.c @@ -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;