mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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
|
* Fixed bug in Gameknot.gkstats when retrieving the stats for
|
||||||
users who haven't yet played a game.
|
users who haven't yet played a game.
|
||||||
|
|
||||||
|
@ -90,7 +90,8 @@ class Misc(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__') and
|
hasattr(getattr(cb, x), '__doc__') and
|
||||||
callbacks.canonicalName(x) == x]
|
callbacks.canonicalName(x) == x and
|
||||||
|
callbacks.canonicalName(x)!=cb.name().lower()]
|
||||||
commands.sort()
|
commands.sort()
|
||||||
irc.reply(msg, ', '.join(commands))
|
irc.reply(msg, ', '.join(commands))
|
||||||
return
|
return
|
||||||
|
@ -88,6 +88,9 @@ class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
|||||||
self.assertRegexp('list --private', name)
|
self.assertRegexp('list --private', name)
|
||||||
self.assertNotRegexp('list Owner', '_exec')
|
self.assertNotRegexp('list Owner', '_exec')
|
||||||
|
|
||||||
|
def testListNoIncludeDispatcher(self):
|
||||||
|
self.assertNotRegexp('list Misc', 'misc')
|
||||||
|
|
||||||
def testVersion(self):
|
def testVersion(self):
|
||||||
self.assertNotError('version')
|
self.assertNotError('version')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user