mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
make Misc.apropos return plugin name even if command is in only one plugin.
Signed-off-by: James Vega <jamessan@users.sourceforge.net> (cherry picked from commit 8daebd1240ca73c3eba98c3401c1bcc6a3e37335)
This commit is contained in:
parent
976567c1ac
commit
9e1ba9910a
@ -169,11 +169,8 @@ class Misc(callbacks.Plugin):
|
|||||||
if s in command:
|
if s in command:
|
||||||
commands.setdefault(command, []).append(cb.name())
|
commands.setdefault(command, []).append(cb.name())
|
||||||
for (key, names) in commands.iteritems():
|
for (key, names) in commands.iteritems():
|
||||||
if len(names) == 1:
|
for name in names:
|
||||||
L.append(key)
|
L.append('%s %s' % (name, key))
|
||||||
else:
|
|
||||||
for name in names:
|
|
||||||
L.append('%s %s' % (name, key))
|
|
||||||
if L:
|
if L:
|
||||||
L.sort()
|
L.sort()
|
||||||
irc.reply(format('%L', L))
|
irc.reply(format('%L', L))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user