mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 20:22:45 +01:00
Channel: Fix Nameerror in @alert.
Closes GH-1452
This commit is contained in:
parent
8559ea9848
commit
7af8918f41
@ -941,7 +941,7 @@ class Channel(callbacks.Plugin):
|
|||||||
getopts({'count':''})])
|
getopts({'count':''})])
|
||||||
|
|
||||||
@internationalizeDocstring
|
@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
|
"""Internal message for notifying all the #channel,ops in a channel of
|
||||||
a given situation."""
|
a given situation."""
|
||||||
capability = ircdb.makeChannelCapability(channel, 'op')
|
capability = ircdb.makeChannelCapability(channel, 'op')
|
||||||
@ -960,7 +960,7 @@ class Channel(callbacks.Plugin):
|
|||||||
Sends <text> to all the users in <channel> who have the <channel>,op
|
Sends <text> to all the users in <channel> who have the <channel>,op
|
||||||
capability.
|
capability.
|
||||||
"""
|
"""
|
||||||
self.alertOps(irc, channel, text, frm=msg.nick)
|
self.alertOps(irc, msg, channel, text, frm=msg.nick)
|
||||||
alert = wrap(alert, ['inChannel', 'text'])
|
alert = wrap(alert, ['inChannel', 'text'])
|
||||||
|
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
|
Loading…
Reference in New Issue
Block a user