From 7af8918f41ff858a112930ad0b5e5cda2f82b620 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 17 May 2021 18:24:33 +0200 Subject: [PATCH] Channel: Fix Nameerror in @alert. Closes GH-1452 --- plugins/Channel/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index bd8cd1b8c..cb4cd5c7c 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -941,7 +941,7 @@ class Channel(callbacks.Plugin): getopts({'count':''})]) @internationalizeDocstring - def alertOps(self, irc, channel, s, frm=None): + def alertOps(self, irc, msg, channel, s, frm=None): """Internal message for notifying all the #channel,ops in a channel of a given situation.""" capability = ircdb.makeChannelCapability(channel, 'op') @@ -960,7 +960,7 @@ class Channel(callbacks.Plugin): Sends to all the users in who have the ,op capability. """ - self.alertOps(irc, channel, text, frm=msg.nick) + self.alertOps(irc, msg, channel, text, frm=msg.nick) alert = wrap(alert, ['inChannel', 'text']) @internationalizeDocstring