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: else:
try: try:
user = ircdb.users.getUser(name) user = ircdb.users.getUser(name)
irc.reply(getHostmasks(user)) irc.reply(getHostmasks(user), private=True)
except KeyError: except KeyError:
irc.errorNoUser() irc.errorNoUser()
else: else:
irc.reply(getHostmasks(user)) irc.reply(getHostmasks(user), private=True)
except KeyError: except KeyError:
irc.errorNotRegistered() irc.errorNotRegistered()
list = wrap(list, ['private', additional('something')]) list = wrap(list, [additional('something')])
@internationalizeDocstring @internationalizeDocstring
def add(self, irc, msg, args, user, hostmask, password): def add(self, irc, msg, args, user, hostmask, password):