Forgot to update the second call _disambiguate to the new interface.

This commit is contained in:
Jeremy Fincher 2003-11-03 06:55:51 +00:00
parent 66797de4bf
commit bc5529c87d
2 changed files with 2 additions and 1 deletions

View File

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

View File

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