diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-07-21 12:52:20 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-07-21 12:52:20 -0700 |
commit | e81a2053b9d668216e4a938bd89a2b59f0a0b922 (patch) | |
tree | 8d78ded6458714eda8a4d6c561639d7ac5766455 /wee_slack.py | |
parent | 86a8db90da64c6c3746f14692d52cab41c101bdd (diff) | |
download | wee-slack-e81a2053b9d668216e4a938bd89a2b59f0a0b922.tar.gz |
remove something that made this suck
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/wee_slack.py b/wee_slack.py index 10db281..c960590 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1073,13 +1073,11 @@ def process_manual_presence_change(message_json): def process_presence_change(message_json): server = servers.find(message_json["myserver"]) - nick = message_json.get("user", server.nick) - buffer_name = "{}.{}".format(domain, nick) - buf_ptr = w.buffer_search("", buffer_name) + identifier = message_json.get("user", server.nick) if message_json["presence"] == 'active': - users.find(nick).set_active() + users.find(identifier).set_active() else: - users.find(nick).set_inactive() + users.find(identifier).set_inactive() def process_channel_marked(message_json): |