mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Stopped listing the plugin dispatcher command in the commands list.
This commit is contained in:
parent
a4284e7924
commit
4cb49606c5
@ -1,3 +1,6 @@
|
||||
* Stopped listing the plugin dispatcher command in the list of
|
||||
commands for that plugin.
|
||||
|
||||
* Fixed bug in Gameknot.gkstats when retrieving the stats for
|
||||
users who haven't yet played a game.
|
||||
|
||||
|
@ -90,7 +90,8 @@ class Misc(callbacks.Privmsg):
|
||||
commands = [x for x in dir(cls)
|
||||
if cb.isCommand(x) and
|
||||
hasattr(getattr(cb, x), '__doc__') and
|
||||
callbacks.canonicalName(x) == x]
|
||||
callbacks.canonicalName(x) == x and
|
||||
callbacks.canonicalName(x)!=cb.name().lower()]
|
||||
commands.sort()
|
||||
irc.reply(msg, ', '.join(commands))
|
||||
return
|
||||
|
@ -88,6 +88,9 @@ class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||
self.assertRegexp('list --private', name)
|
||||
self.assertNotRegexp('list Owner', '_exec')
|
||||
|
||||
def testListNoIncludeDispatcher(self):
|
||||
self.assertNotRegexp('list Misc', 'misc')
|
||||
|
||||
def testVersion(self):
|
||||
self.assertNotError('version')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user