From 9e1ba9910a7598c7f62a1d5c48bfaa52ca76ff9b Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Tue, 27 Apr 2010 12:46:22 -0400 Subject: [PATCH] make Misc.apropos return plugin name even if command is in only one plugin. Signed-off-by: James Vega (cherry picked from commit 8daebd1240ca73c3eba98c3401c1bcc6a3e37335) --- plugins/Misc/plugin.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/Misc/plugin.py b/plugins/Misc/plugin.py index 5680589fb..91f944f2e 100644 --- a/plugins/Misc/plugin.py +++ b/plugins/Misc/plugin.py @@ -169,11 +169,8 @@ class Misc(callbacks.Plugin): if s in command: commands.setdefault(command, []).append(cb.name()) for (key, names) in commands.iteritems(): - if len(names) == 1: - L.append(key) - else: - for name in names: - L.append('%s %s' % (name, key)) + for name in names: + L.append('%s %s' % (name, key)) if L: L.sort() irc.reply(format('%L', L))