- opercmd.c:command_parse(): don't continue to walk thru the entire table
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 8 Jan 2015 15:26:56 +0000 (15:26 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Thu, 8 Jan 2015 15:26:56 +0000 (15:26 +0000)
  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

src/opercmd.c

index 3874f05b4c810384b4cf5a7993b481abf8d1c452..87eb8a9b09705737fcec4547d97642e156ee1c1d 100644 (file)
@@ -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;
     }
   }