mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
Merge pull request #567 from nyuszika7h/plugin-remove-list
Plugin: Remove duplicate !list command
This commit is contained in:
commit
a28560c267
@ -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>
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user