Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Fix command-notify ignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed May 11, 2015
1 parent 89557b2 commit 7addcfc
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -84,12 +84,15 @@ public void onPlayerCommandPreprocessEvent(PlayerCommandPreprocessEvent event) {
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);
}
}
}
}
Expand Down

0 comments on commit 7addcfc

Please sign in to comment.