From 177c20267c703d9255b4fb24ef9ebf14773545ff Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 24 Apr 2021 21:21:57 +0200 Subject: [PATCH] irclib: Fix crash caused by 4d2efc65ef26f4c49d893a520c36830e600dad56. dynamicScope inspects the stack looking for this variable, so we need to keep it. --- src/irclib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/irclib.py b/src/irclib.py index f4bb6cce7..0ceeff4e7 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -1564,6 +1564,7 @@ class Irc(IrcCommandDispatcher, log.Firewalled): received* tags.""" if tag: self._tagMsg(msg) + channel = msg.channel # used by dynamicScope (ew) preInFilter = str(msg).rstrip('\r\n') log.debug('Incoming message (%s): %s', self.network, preInFilter)