mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 21:29:24 +01:00
Fixed an uncaught exception.
This commit is contained in:
parent
cf3b59d516
commit
11300e1845
@ -453,7 +453,8 @@ class Channel(callbacks.Privmsg):
|
||||
message isn't sent in the channel itself.
|
||||
"""
|
||||
(nickOrHostmask, expires) = privmsgs.getArgs(args, optional=1)
|
||||
if ircutils.isNick(nickOrHostmask):
|
||||
if ircutils.isNick(nickOrHostmask) and \
|
||||
nickOrHostmask in irc.state.nicksToHostmasks:
|
||||
banmask = ircutils.banmask(irc.state.nickToHostmask(nickOrHostmask))
|
||||
elif ircutils.isUserHostmask(nickOrHostmask):
|
||||
banmask = nickOrHostmask
|
||||
|
Loading…
Reference in New Issue
Block a user