mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32:36 +01:00
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>
This commit is contained in:
parent
9dccada152
commit
dcb247494e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user