mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Reply with an error when getBanmask doesn't have a valid channel.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 459bc616b1
)
This commit is contained in:
parent
bdf9e8836b
commit
5a0f96fc8e
@ -280,7 +280,10 @@ def getBanmask(irc, msg, args, state):
|
|||||||
getChannel(irc, msg, args, state)
|
getChannel(irc, msg, args, state)
|
||||||
channel = state.channel
|
channel = state.channel
|
||||||
banmaskstyle = conf.supybot.protocols.irc.banmask
|
banmaskstyle = conf.supybot.protocols.irc.banmask
|
||||||
|
try:
|
||||||
state.args[-1] = banmaskstyle.makeBanmask(state.args[-1])
|
state.args[-1] = banmaskstyle.makeBanmask(state.args[-1])
|
||||||
|
except AssertionError:
|
||||||
|
state.errorInvalid('channel', channel)
|
||||||
|
|
||||||
def getUser(irc, msg, args, state):
|
def getUser(irc, msg, args, state):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user