User: Fix hostmask.list to show the user's name not the repr user object

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 9dccada152)
This commit is contained in:
James Vega 2009-07-16 11:28:43 -04:00
parent 7aeedea6f6
commit 965f4e79b8

View File

@ -254,7 +254,8 @@ class User(callbacks.Plugin):
hostmasks.sort()
return format('%L', hostmasks)
else:
irc.reply(format('%s has no registered hostmasks.', user))
irc.reply(format('%s has no registered hostmasks.',
user.name))
try:
user = ircdb.users.getUser(msg.prefix)
if name: