mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-10 12:59:22 +01:00
Fix bug #1082448, User.username traceback
This commit is contained in:
parent
3679b28e57
commit
595a787f8a
@ -294,7 +294,7 @@ class User(callbacks.Privmsg):
|
|||||||
Returns the username of the user specified by <hostmask> or <nick> if
|
Returns the username of the user specified by <hostmask> or <nick> if
|
||||||
the user is registered.
|
the user is registered.
|
||||||
"""
|
"""
|
||||||
if ircutils.isNick(nickOrHostmask):
|
if ircutils.isNick(hostmask):
|
||||||
try:
|
try:
|
||||||
hostmask = irc.state.nickToHostmask(hostmask)
|
hostmask = irc.state.nickToHostmask(hostmask)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user