Stopped listing the plugin dispatcher command in the commands list.

This commit is contained in:
Jeremy Fincher 2003-11-25 08:51:27 +00:00
parent a4284e7924
commit 4cb49606c5
3 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -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

View File

@ -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')