User: getHostmasks should always return a string

Since it was calling irc.reply() in one case, we had both that irc.reply being
sent and the irc.reply() of what getHostmasks returned (None in that case).
Bad!

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit dcb247494e)
This commit is contained in:
James Vega 2009-07-16 11:39:20 -04:00
parent 965f4e79b8
commit d43d083f44
1 changed files with 1 additions and 2 deletions

View File

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