mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 17:39:27 +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
|
||||
the user is registered.
|
||||
"""
|
||||
if ircutils.isNick(nickOrHostmask):
|
||||
if ircutils.isNick(hostmask):
|
||||
try:
|
||||
hostmask = irc.state.nickToHostmask(hostmask)
|
||||
except KeyError:
|
||||
|
Loading…
Reference in New Issue
Block a user