mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fixed bug in list where _exec would show.
This commit is contained in:
parent
b7f4cbe7d8
commit
18a8f81985
@ -115,8 +115,9 @@ class MiscCommands(callbacks.Privmsg):
|
|||||||
not issubclass(cls, callbacks.PrivmsgRegexp) and \
|
not issubclass(cls, callbacks.PrivmsgRegexp) and \
|
||||||
issubclass(cls, callbacks.Privmsg):
|
issubclass(cls, callbacks.Privmsg):
|
||||||
commands = [x for x in dir(cls)
|
commands = [x for x in dir(cls)
|
||||||
if cb.isCommand(x) and \
|
if cb.isCommand(x) and
|
||||||
hasattr(getattr(cb, x), '__doc__')]
|
hasattr(getattr(cb, x), '__doc__') and
|
||||||
|
callbacks.canonicalName(x) == x]
|
||||||
commands.sort()
|
commands.sort()
|
||||||
irc.reply(msg, ', '.join(commands))
|
irc.reply(msg, ', '.join(commands))
|
||||||
return
|
return
|
||||||
|
@ -82,6 +82,7 @@ class MiscCommandsTestCase(ChannelPluginTestCase, PluginDocumentation):
|
|||||||
self.failIf(self.irc.getCallback(name).public)
|
self.failIf(self.irc.getCallback(name).public)
|
||||||
self.assertNotRegexp('list', name)
|
self.assertNotRegexp('list', name)
|
||||||
self.assertRegexp('list --private', name)
|
self.assertRegexp('list --private', name)
|
||||||
|
self.assertNotRegexp('list OwnerCommands', '_exec')
|
||||||
|
|
||||||
def testVersion(self):
|
def testVersion(self):
|
||||||
self.assertNotError('version')
|
self.assertNotError('version')
|
||||||
|
Loading…
Reference in New Issue
Block a user