mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-11 03:50:44 +01:00
Ensure getBanmask has a channel variable as per makeBanmask's requirement
Signed-off-by: James Vega <jamessan@users.sourceforge.net> (cherry picked from commit 260570bd4fccfb8bae470f49449592c229c235df)
This commit is contained in:
parent
bc1c159d27
commit
bdf9e8836b
@ -278,6 +278,7 @@ def getBanmask(irc, msg, args, state):
|
||||
getHostmask(irc, msg, args, state)
|
||||
if not state.channel:
|
||||
getChannel(irc, msg, args, state)
|
||||
channel = state.channel
|
||||
banmaskstyle = conf.supybot.protocols.irc.banmask
|
||||
state.args[-1] = banmaskstyle.makeBanmask(state.args[-1])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user