From a143d98ac162046b8294b778d45f4c103c714dc5 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 30 Mar 2020 13:09:33 -0700 Subject: [PATCH] global: always coerse channel argument to str These can be type int as of v3.0, e.g. in pylink-discord --- plugins/global.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/global.py b/plugins/global.py index 05ceef7..c4cfcd7 100644 --- a/plugins/global.py +++ b/plugins/global.py @@ -37,7 +37,7 @@ def g(irc, source, args): skip = False for exempt in local_exempt_channels: - if ircd.match_text(exempt, channel): + if ircd.match_text(exempt, str(channel)): log.debug('global: Skipping channel %s%s for exempt %r', netname, channel, exempt) skip = True break