]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix events
authorThorsten S <mail@aero2k.de>
Sun, 7 Oct 2018 19:09:52 +0000 (21:09 +0200)
committerThorsten S <mail@aero2k.de>
Sun, 7 Oct 2018 19:09:52 +0000 (21:09 +0200)
distbot/bot/action_worker.py

index 4ceaa3d8e61ae81750b882c66b0481966f189d23..8740825ce025dd6ec469c733e995877fe499ae87 100644 (file)
@@ -114,6 +114,9 @@ class ActionThread(threading.Thread):
                 if action.event.stop_event:
                     self.unschedule_action(action.event)
                 else:
+                    # oops. TODO: constant unwrapping and rewrapping, only to loose "optional" attributes
+                    action.event.recipient = action.event.recipient or action.recipient
+                    action.event.sender = action.event.sender or action.sender
                     self.schedule_action(action.event)
         except RuntimeError as e:
             if action.msg: