mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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 \
|
||||
issubclass(cls, callbacks.Privmsg):
|
||||
commands = [x for x in dir(cls)
|
||||
if cb.isCommand(x) and \
|
||||
hasattr(getattr(cb, x), '__doc__')]
|
||||
if cb.isCommand(x) and
|
||||
hasattr(getattr(cb, x), '__doc__') and
|
||||
callbacks.canonicalName(x) == x]
|
||||
commands.sort()
|
||||
irc.reply(msg, ', '.join(commands))
|
||||
return
|
||||
|
@ -82,6 +82,7 @@ class MiscCommandsTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
self.failIf(self.irc.getCallback(name).public)
|
||||
self.assertNotRegexp('list', name)
|
||||
self.assertRegexp('list --private', name)
|
||||
self.assertNotRegexp('list OwnerCommands', '_exec')
|
||||
|
||||
def testVersion(self):
|
||||
self.assertNotError('version')
|
||||
|
Loading…
Reference in New Issue
Block a user