diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-04-10 13:37:51 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-04-10 13:48:09 +0200 |
commit | c7f9b3e802be96cbce60399b0d5b367f13cc1275 (patch) | |
tree | 1b99358e354b4b4436e2d6494bbd45f4cef5f59e /wee_slack.py | |
parent | 069378f95ca09a73252cefadd5cf8d2e4a976a61 (diff) | |
download | wee-slack-c7f9b3e802be96cbce60399b0d5b367f13cc1275.tar.gz |
Set team in message_json after recording event
SlackTeam can't be json serialized, so this broke record_events. I broke
this in commit 324890c when I changed from storing the team hash on the
message_json to storing the team.
You can't currently see which team the message is from, but you couldn't
really with the team hash either since the relation between the team and
the team hash is not printed anywhere. I will add a better way to see
which team the message is from in the next commit.
Fixes #761
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 789e750..57cf55f 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -516,9 +516,9 @@ class EventRouter(object): return w.WEECHAT_RC_OK message_json = json.loads(data.decode('utf-8')) - message_json["wee_slack_metadata_team"] = team if self.recording: self.record_event(message_json, 'type', 'websocket') + message_json["wee_slack_metadata_team"] = team self.receive(message_json) return w.WEECHAT_RC_OK |