From 8ffd78707517d7f27097218cb58b6f126f200e64 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 16 Mar 2020 19:06:44 -0700 Subject: [PATCH] global: call match_text() on the target network object Technically this will only make a difference if a server object overrides match_text(), but this is the more correct solution. --- plugins/global.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/global.py b/plugins/global.py index 021ee15..05ceef7 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 irc.match_text(exempt, channel): + if ircd.match_text(exempt, channel): log.debug('global: Skipping channel %s%s for exempt %r', netname, channel, exempt) skip = True break