mirror of https://github.com/Mikaela/Limnoria.git
Fix for bug #857054.
This commit is contained in:
parent
b4ffe24b84
commit
a6099943b4
|
@ -91,7 +91,7 @@ class Misc(callbacks.Privmsg):
|
||||||
commands = []
|
commands = []
|
||||||
for s in dir(cb):
|
for s in dir(cb):
|
||||||
if cb.isCommand(s) and \
|
if cb.isCommand(s) and \
|
||||||
s != name and \
|
(s != name or cb._original) and \
|
||||||
s == callbacks.canonicalName(s):
|
s == callbacks.canonicalName(s):
|
||||||
method = getattr(cb, s)
|
method = getattr(cb, s)
|
||||||
if hasattr(method, '__doc__') and method.__doc__:
|
if hasattr(method, '__doc__') and method.__doc__:
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
from testsupport import *
|
from testsupport import *
|
||||||
|
|
||||||
class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||||
plugins = ('Misc', 'Utilities', 'Gameknot', 'Ctcp')
|
plugins = ('Misc', 'Utilities', 'Gameknot', 'Ctcp', 'Dict')
|
||||||
def testAction(self):
|
def testAction(self):
|
||||||
self.assertAction('action moos', 'moos')
|
self.assertAction('action moos', 'moos')
|
||||||
self.assertAction('action','')
|
self.assertAction('action','')
|
||||||
|
@ -91,6 +91,9 @@ class MiscTestCase(ChannelPluginTestCase, PluginDocumentation):
|
||||||
def testListNoIncludeDispatcher(self):
|
def testListNoIncludeDispatcher(self):
|
||||||
self.assertNotRegexp('list Misc', 'misc')
|
self.assertNotRegexp('list Misc', 'misc')
|
||||||
|
|
||||||
|
def testListIncludesDispatcherIfThereIsAnOriginalCommand(self):
|
||||||
|
self.assertRegexp('list Dict', r'\bdict\b')
|
||||||
|
|
||||||
def testVersion(self):
|
def testVersion(self):
|
||||||
self.assertNotError('version')
|
self.assertNotError('version')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue