mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +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()
|
hostmasks.sort()
|
||||||
return format('%L', hostmasks)
|
return format('%L', hostmasks)
|
||||||
else:
|
else:
|
||||||
irc.reply(format('%s has no registered hostmasks.',
|
return format('%s has no registered hostmasks.', user.name)
|
||||||
user.name))
|
|
||||||
try:
|
try:
|
||||||
user = ircdb.users.getUser(msg.prefix)
|
user = ircdb.users.getUser(msg.prefix)
|
||||||
if name:
|
if name:
|
||||||
|
Loading…
Reference in New Issue
Block a user