Let's ensure that self.repliedTo is False before calling invalidCommands.

This commit is contained in:
Jeremy Fincher 2005-06-08 17:49:54 +00:00
parent dff2862bb1
commit 3d66bc88e5
1 changed files with 1 additions and 1 deletions

View File

@ -661,6 +661,7 @@ class NestedCommandsIrcProxy(ReplyIrcProxy):
cbs.append(cb) cbs.append(cb)
threaded = threaded or cb.threaded threaded = threaded or cb.threaded
def callInvalidCommands(): def callInvalidCommands():
self.repliedTo = False
for cb in cbs: for cb in cbs:
log.debug('Calling %s.invalidCommand.', cb.name()) log.debug('Calling %s.invalidCommand.', cb.name())
try: try:
@ -673,7 +674,6 @@ class NestedCommandsIrcProxy(ReplyIrcProxy):
log.debug('Finished calling %s.invalidCommand.', cb.name()) log.debug('Finished calling %s.invalidCommand.', cb.name())
if self.repliedTo: if self.repliedTo:
log.debug('Done calling invalidCommands: %s.',cb.name()) log.debug('Done calling invalidCommands: %s.',cb.name())
self.repliedTo = False
return return
if threaded: if threaded:
name = 'Thread #%s (for invalidCommands)' % world.threadsSpawned name = 'Thread #%s (for invalidCommands)' % world.threadsSpawned