From 1a7e584a53a5288905e5e700eeedd32cba8fb62f Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sun, 16 Mar 2014 14:12:53 +0100 Subject: [PATCH 1/2] Plugin: Remove duplicate !list command It also exists in Misc. --- plugins/Plugin/plugin.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/plugins/Plugin/plugin.py b/plugins/Plugin/plugin.py index 79151f783..1483376ff 100644 --- a/plugins/Plugin/plugin.py +++ b/plugins/Plugin/plugin.py @@ -57,17 +57,6 @@ class Plugin(callbacks.Plugin): irc.reply(_('That plugin is loaded, but has no plugin help.')) help = wrap(help, ['plugin']) - @internationalizeDocstring - def list(self, irc, msg, args): - """takes no arguments - - Returns a list of the currently loaded plugins. - """ - L = [cb.name() for cb in irc.callbacks] - L.sort() - irc.reply(format('%L', L)) - list = wrap(list) - @internationalizeDocstring def plugin(self, irc, msg, args, command): """ From a9b36719ba368976ee7f7755c4f87850add1a050 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sun, 16 Mar 2014 16:12:03 +0100 Subject: [PATCH 2/2] Remove test case for !plugin list --- plugins/Plugin/test.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/Plugin/test.py b/plugins/Plugin/test.py index 6417f8471..eb03c9cb3 100644 --- a/plugins/Plugin/test.py +++ b/plugins/Plugin/test.py @@ -39,9 +39,6 @@ class PluginTestCase(PluginTestCase): self.assertRegexp('plugins join', '(Format.*Admin|Admin.*Format)') self.assertRegexp('plugins plugin', 'Plugin') - def testList(self): - self.assertRegexp('plugin list', 'Plugin.*Utilities') - def testHelp(self): self.assertRegexp('plugin help plugin', 'manage their plugins')