summaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
authorPratyush Desai2021-09-07 16:33:00 +0200
committerGeorg Pfuetzenreuter2021-09-07 16:33:00 +0200
commitca02bba8c341b00973497e6f37a8ee34d75fcf0a (patch)
tree6f562be70e7b852076d8db07b056dce9655ea3c7 /plugin.py
parent46596e0b33a9a5dc086028f8e0e023a4b599bc95 (diff)
downloadsnoparser-ca02bba8c341b00973497e6f37a8ee34d75fcf0a.tar.gz
snoparser-ca02bba8c341b00973497e6f37a8ee34d75fcf0a.tar.bz2
snoparser-ca02bba8c341b00973497e6f37a8ee34d75fcf0a.zip
TargetChannel config + requirements.txt (#17)
Added requirements.txt Updated configuration value errors Reviewed-on: https://git.com.de/LimnoriaPlugins/SnoParser/pulls/17 Co-authored-by: Pratyush Desai <pratyush.desai@liberta.casa> Co-committed-by: Pratyush Desai <pratyush.desai@liberta.casa>
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