From 7d4d9ad7a9431526af67465acccfcda7f44fd815 Mon Sep 17 00:00:00 2001
From: Thorsten S <mail@aero2k.de>
Date: Sun, 7 Oct 2018 21:09:52 +0200
Subject: [PATCH] fix events

---
 distbot/bot/action_worker.py | 3 +++
 1 file changed, 3 insertions(+)

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:
-- 
2.47.2