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,11 +84,14 @@ public class GamePlayerCommandPreprocessingListener implements Listener {
cmd = msg;
}
cmd = cmd.substring(0);
boolean ignoreMe = false;
for (String s : ircBot.channelCmdNotifyIgnore) {
if (s.equalsIgnoreCase(cmd)) {
ignoreMe = true;
}
}
if (!ignoreMe) {
ircBot.commandNotify(event.getPlayer(), cmd, params);
break;
}
}
}
}