mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Fixed a bugger in Misc.py.
This commit is contained in:
parent
a666eddd16
commit
5ddd26cc69
@ -98,7 +98,7 @@ class Misc(callbacks.Privmsg):
|
||||
'Please specify the plugin whose command you ' \
|
||||
'wish to call by using its name as a command ' \
|
||||
'before calling it.' % \
|
||||
(command, utils.commaAndify(names), command)
|
||||
(command, utils.commaAndify(names))
|
||||
else:
|
||||
L = []
|
||||
while ambiguousCommands:
|
||||
|
@ -241,6 +241,11 @@ class PrivmsgTestCase(ChannelPluginTestCase):
|
||||
self.assertResponse('first firstcmd', 'foo')
|
||||
self.assertResponse('firstrepeat firstcmd', 'baz')
|
||||
|
||||
def testAmbiguousHelpError(self):
|
||||
self.irc.addCallback(self.First())
|
||||
self.irc.addCallback(self.FirstRepeat())
|
||||
self.assertError('help first')
|
||||
|
||||
def testHelpDispatching(self):
|
||||
self.irc.addCallback(self.First())
|
||||
self.assertHelp('help firstcmd')
|
||||
@ -280,7 +285,7 @@ class PrivmsgCommandAndRegexpTestCase(PluginTestCase):
|
||||
raise callbacks.ArgumentError
|
||||
def testNoEscapingArgumentError(self):
|
||||
self.irc.addCallback(self.PCAR())
|
||||
self.assertResponse('test', 'PCAR test <foo>')
|
||||
self.assertResponse('test', 'test <foo>')
|
||||
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
Loading…
Reference in New Issue
Block a user