User: force replies for 'hostmask list' in private instead of requiring the command to be called that way

This commit is contained in:
James Lu 2017-01-15 14:19:55 -08:00 committed by Valentin Lorentz
parent 3633a2b2e3
commit 6cb747744a
1 changed files with 3 additions and 3 deletions

View File

@ -299,14 +299,14 @@ class User(callbacks.Plugin):
else:
try:
user = ircdb.users.getUser(name)
irc.reply(getHostmasks(user))
irc.reply(getHostmasks(user), private=True)
except KeyError:
irc.errorNoUser()
else:
irc.reply(getHostmasks(user))
irc.reply(getHostmasks(user), private=True)
except KeyError:
irc.errorNotRegistered()
list = wrap(list, ['private', additional('something')])
list = wrap(list, [additional('something')])
@internationalizeDocstring
def add(self, irc, msg, args, user, hostmask, password):