mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 19:45:54 +01:00
Fix command-notify ignore.
This commit is contained in:
parent
7b797b2ef8
commit
5b71aba092
@ -84,12 +84,15 @@ public class GamePlayerCommandPreprocessingListener implements Listener {
|
||||
cmd = msg;
|
||||
}
|
||||
cmd = cmd.substring(0);
|
||||
boolean ignoreMe = false;
|
||||
for (String s : ircBot.channelCmdNotifyIgnore) {
|
||||
if (s.equalsIgnoreCase(cmd)) {
|
||||
ircBot.commandNotify(event.getPlayer(), cmd, params);
|
||||
break;
|
||||
ignoreMe = true;
|
||||
}
|
||||
}
|
||||
if (!ignoreMe) {
|
||||
ircBot.commandNotify(event.getPlayer(), cmd, params);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user