aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 7014071..d92bff5 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2151,7 +2151,15 @@ def process_manual_presence_change(message_json, eventrouter, **kwargs):
def process_presence_change(message_json, eventrouter, **kwargs):
- kwargs["user"].presence = message_json["presence"]
+ if "user" in kwargs:
+ user = kwargs["user"]
+ team = kwargs["team"]
+ user.presence = message_json["presence"]
+
+ for c in team.channels:
+ c = team.channels[c]
+ if user.id in c.members:
+ c.update_nicklist(user.id)
def process_pref_change(message_json, eventrouter, **kwargs):