aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 8581e75..ade99cb 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1166,9 +1166,9 @@ def process_presence_change(message_json):
server = servers.find(message_json["myserver"])
identifier = message_json.get("user", server.nick)
if message_json["presence"] == 'active':
- users.find(identifier).set_active()
+ server.users.find(identifier).set_active()
else:
- users.find(identifier).set_inactive()
+ server.users.find(identifier).set_inactive()
def process_channel_marked(message_json):