make Misc.apropos return plugin name even if command is in only one plugin.

This commit is contained in:
Daniel Folkinshteyn 2010-04-27 12:46:22 -04:00
parent 2bb3ba9443
commit a819c5b496

View File

@ -170,11 +170,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))