Pass processed message to FSM trigger predicates

This commit is contained in:
Kristóf Tóth 2018-04-06 17:14:06 +02:00
parent 96c322c17c
commit b785b88af6

View File

@ -66,7 +66,7 @@ class FSMManager:
def trigger(self, trigger, message):
predicate_results = []
for predicate in self.trigger_predicates[trigger]:
success, message = predicate()
success, message = predicate(message)
predicate_results.append(success)
self.messenge_sender.send('FSM', message)