Fix bug #1082448, User.username traceback

This commit is contained in:
James Vega 2004-12-10 06:18:00 +00:00
parent 3679b28e57
commit 595a787f8a

View File

@ -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: