Next chapter for diversion only on Timeout diversion
This commit is contained in:
parent
bf12323f41
commit
23cf100df7
1 changed files with 2 additions and 8 deletions
|
@ -535,10 +535,7 @@ class Diversion(object):
|
||||||
|
|
||||||
story.logger.info(f"Diverge: No response {self.id} {story.stats}")
|
story.logger.info(f"Diverge: No response {self.id} {story.stats}")
|
||||||
|
|
||||||
# fall back to the next message to return on.
|
self.returnMessage = msgTo
|
||||||
# TODO: maybe, if not chapter is found, the diversion should be
|
|
||||||
# blocked alltogether?
|
|
||||||
self.returnMessage = story.getNextChapterForMsg(msgTo) or msgTo
|
|
||||||
|
|
||||||
await story.setCurrentMessage(msg)
|
await story.setCurrentMessage(msg)
|
||||||
story.currentDiversion = self
|
story.currentDiversion = self
|
||||||
|
@ -586,10 +583,7 @@ class Diversion(object):
|
||||||
story.logger.critical(f"Not a valid message id for diversion: {self.params['msgId']}")
|
story.logger.critical(f"Not a valid message id for diversion: {self.params['msgId']}")
|
||||||
return
|
return
|
||||||
|
|
||||||
# fall back to the next message to return on.
|
self.returnMessage = msgTo
|
||||||
# TODO: maybe, if not chapter is found, the diversion should be
|
|
||||||
# blocked alltogether?
|
|
||||||
self.returnMessage = story.getNextChapterForMsg(msgTo) or msgTo
|
|
||||||
await story.setCurrentMessage(msg)
|
await story.setCurrentMessage(msg)
|
||||||
story.currentDiversion = self
|
story.currentDiversion = self
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue