From 6d37cfbbb02f8c985850c42facb87b6d40f03e85 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 23 Dec 2014 18:35:23 +0000 Subject: [PATCH] - opercmd.c:command_parse(): fixed braindead 'logic' git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5088 82007160-df01-0410-b94d-b575c5fd34c7 --- src/opercmd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; -- 2.30.2