From: Thorsten S Date: Sun, 7 Oct 2018 19:09:52 +0000 (+0200) Subject: fix events X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=7d4d9ad7a9431526af67465acccfcda7f44fd815;p=urlbot-v3.git fix events --- diff --git a/distbot/bot/action_worker.py b/distbot/bot/action_worker.py index 4ceaa3d..8740825 100644 --- a/distbot/bot/action_worker.py +++ b/distbot/bot/action_worker.py @@ -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: