mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Let's ensure that self.repliedTo is False before calling invalidCommands.
This commit is contained in:
parent
dff2862bb1
commit
3d66bc88e5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user