From d43d083f44c49b5dea63793b2b2b13baaffe09aa Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 16 Jul 2009 11:39:20 -0400 Subject: [PATCH] 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 (cherry picked from commit dcb247494e4fd6433865e8c94cf56414fb253192) --- plugins/User/plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/User/plugin.py b/plugins/User/plugin.py index a23228f78..cf1342027 100644 --- a/plugins/User/plugin.py +++ b/plugins/User/plugin.py @@ -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: