diff --git a/src/main/java/com/cnaude/purpleirc/IRCListeners/ModeListener.java b/src/main/java/com/cnaude/purpleirc/IRCListeners/ModeListener.java index fbb2f1b..e8af2c9 100644 --- a/src/main/java/com/cnaude/purpleirc/IRCListeners/ModeListener.java +++ b/src/main/java/com/cnaude/purpleirc/IRCListeners/ModeListener.java @@ -52,7 +52,7 @@ public class ModeListener extends ListenerAdapter { String mode = event.getMode(); User user = event.getUser(); - if (!ircBot.isValidChannel(channel.getName())) { + if (ircBot.isValidChannel(channel.getName())) { ircBot.broadcastIRCMode(user, mode, channel); } }