irclib: Fix crash caused by 4d2efc65ef.

dynamicScope inspects the stack looking for this variable, so we need to keep it.
This commit is contained in:
Valentin Lorentz 2021-04-24 21:21:57 +02:00
parent 8a4e8c2a37
commit 177c20267c

View File

@ -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)