From ca02bba8c341b00973497e6f37a8ee34d75fcf0a Mon Sep 17 00:00:00 2001 From: Pratyush Desai Date: Tue, 7 Sep 2021 16:33:00 +0200 Subject: 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 Co-committed-by: Pratyush Desai --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin.py') 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 -- cgit v1.2.3