Merge pull request #567 from nyuszika7h/plugin-remove-list

Plugin: Remove duplicate !list command
This commit is contained in:
Valentin Lorentz 2014-03-16 16:14:06 +01:00
commit a28560c267
2 changed files with 0 additions and 14 deletions

View File

@ -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):
"""<command>

View File

@ -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')