summaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.py')
-rw-r--r--plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin.py b/plugin.py
index d10c8e0..c06a6e4 100644
--- a/plugin.py
+++ b/plugin.py
@@ -397,7 +397,7 @@ class SnoParser(callbacks.Plugin):
def _sendSnotice(self, irc, msg, repl):
try:
channel = self.registryValue('targetChannel')
- if channel[0] == '#':
+ if irc.isChannel(channel):
irc.queueMsg(msg=ircmsgs.IrcMsg(command='NOTICE',
args=(channel, repl)))
# what sort of exception does one raise