From a819c5b4967ca806d29449eb7bbf750b1fd06314 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. --- 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 c67068069..a1412f32e 100644 --- a/plugins/Misc/plugin.py +++ b/plugins/Misc/plugin.py @@ -170,11 +170,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))