From: michael Date: Thu, 8 Jan 2015 15:26:56 +0000 (+0000) Subject: - opercmd.c:command_parse(): don't continue to walk thru the entire table X-Git-Tag: 1.0.2~16 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=f484fdfe0b8fb051d7d734d188b9a452c9553c36;p=hopm.git - opercmd.c:command_parse(): don't continue to walk thru the entire table once a command has been found git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5340 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/src/opercmd.c b/src/opercmd.c index 3874f05..87eb8a9 100644 --- a/src/opercmd.c +++ b/src/opercmd.c @@ -186,6 +186,7 @@ command_parse(char *command, char *msg, const struct ChannelConf *target, struct Command *cs = command_create(tab, param, source_p->irc_nick, target); list_add(COMMANDS, node_create(cs)); + break; } }