mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01: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
|
||||
for elt in tokens:
|
||||
if isinstance(elt, list):
|
||||
self._disambiguate(elt)
|
||||
self._disambiguate(irc, elt, ambiguousCommands)
|
||||
|
||||
def doPrivmsg(self, irc, msg):
|
||||
callbacks.Privmsg.handled = False
|
||||
|
@ -256,6 +256,7 @@ class PrivmsgTestCase(ChannelPluginTestCase):
|
||||
self.assertNotError('firstcmd')
|
||||
self.irc.addCallback(self.FirstRepeat())
|
||||
self.assertError('firstcmd')
|
||||
self.assertError('firstcmd [firstcmd]')
|
||||
self.assertNotRegexp('firstcmd', '(foo.*baz|baz.*foo)')
|
||||
self.assertResponse('first firstcmd', 'foo')
|
||||
self.assertResponse('firstrepeat firstcmd', 'baz')
|
||||
|
Loading…
Reference in New Issue
Block a user