mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 22:49:23 +01:00
Aka: make @list --keys reply on a single line, even if supybot.reply.oneToOne is False. Closes GH-1225.
This commit is contained in:
parent
fc3c9eec7c
commit
6936e3d634
@ -753,12 +753,14 @@ class Aka(callbacks.Plugin):
|
||||
if 'keys' in dict(optlist):
|
||||
# Strange, aka_list is a list of one length tuples
|
||||
s = [k[0] for k in aka_list]
|
||||
oneToOne = True
|
||||
else:
|
||||
aka_values = [self._db.get_alias(channel, aka) for aka in
|
||||
aka_list]
|
||||
s = ('{0}: "{1}"'.format(ircutils.bold(k), v) for (k, v) in
|
||||
zip(aka_list, aka_values))
|
||||
irc.replies(s)
|
||||
oneToOne = None
|
||||
irc.replies(s, oneToOne=oneToOne)
|
||||
else:
|
||||
irc.error(_("No Akas found."))
|
||||
list = wrap(list, [getopts({'channel': 'channel', 'keys': '', 'locked': '',
|
||||
|
Loading…
Reference in New Issue
Block a user