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

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
James Vega 2009-07-16 11:28:43 -04:00
parent c9329303d3
commit 9dccada152

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: