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,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user