Fix command-notify ignore.

This commit is contained in:
cnaude 2015-05-11 11:55:52 -07:00
parent 7b797b2ef8
commit 5b71aba092

View File

@ -84,12 +84,15 @@ public class GamePlayerCommandPreprocessingListener implements Listener {
cmd = msg; cmd = msg;
} }
cmd = cmd.substring(0); cmd = cmd.substring(0);
boolean ignoreMe = false;
for (String s : ircBot.channelCmdNotifyIgnore) { for (String s : ircBot.channelCmdNotifyIgnore) {
if (s.equalsIgnoreCase(cmd)) { if (s.equalsIgnoreCase(cmd)) {
ircBot.commandNotify(event.getPlayer(), cmd, params); ignoreMe = true;
break;
} }
} }
if (!ignoreMe) {
ircBot.commandNotify(event.getPlayer(), cmd, params);
}
} }
} }
} }