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

Commit

Permalink
Add ircOp as valid mode for commands. Use 'i'.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed May 31, 2014
1 parent 9c275c6 commit 9a01135
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -96,6 +96,9 @@ public void processMessage(PurpleBot ircBot, User user, Channel channel, String
if (modes.equals("*")) {
modeOkay = true;
}
if (modes.contains("i") && !modeOkay) {
modeOkay = user.isIrcop();
}
if (modes.contains("o") && !modeOkay) {
modeOkay = user.getChannelsOpIn().contains(channel);
}
Expand Down

0 comments on commit 9a01135

Please sign in to comment.