mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-03 00:41:11 -05:00
Forgot to update the second call _disambiguate to the new interface.
This commit is contained in:
parent
66797de4bf
commit
bc5529c87d
@ -105,7 +105,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
ambiguousCommands[command] = names
|
ambiguousCommands[command] = names
|
||||||
for elt in tokens:
|
for elt in tokens:
|
||||||
if isinstance(elt, list):
|
if isinstance(elt, list):
|
||||||
self._disambiguate(elt)
|
self._disambiguate(irc, elt, ambiguousCommands)
|
||||||
|
|
||||||
def doPrivmsg(self, irc, msg):
|
def doPrivmsg(self, irc, msg):
|
||||||
callbacks.Privmsg.handled = False
|
callbacks.Privmsg.handled = False
|
||||||
|
@ -256,6 +256,7 @@ class PrivmsgTestCase(ChannelPluginTestCase):
|
|||||||
self.assertNotError('firstcmd')
|
self.assertNotError('firstcmd')
|
||||||
self.irc.addCallback(self.FirstRepeat())
|
self.irc.addCallback(self.FirstRepeat())
|
||||||
self.assertError('firstcmd')
|
self.assertError('firstcmd')
|
||||||
|
self.assertError('firstcmd [firstcmd]')
|
||||||
self.assertNotRegexp('firstcmd', '(foo.*baz|baz.*foo)')
|
self.assertNotRegexp('firstcmd', '(foo.*baz|baz.*foo)')
|
||||||
self.assertResponse('first firstcmd', 'foo')
|
self.assertResponse('first firstcmd', 'foo')
|
||||||
self.assertResponse('firstrepeat firstcmd', 'baz')
|
self.assertResponse('firstrepeat firstcmd', 'baz')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user