aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-07-21 12:52:20 -0700
committerRyan Huber <rhuber@gmail.com>2015-07-21 12:52:20 -0700
commite81a2053b9d668216e4a938bd89a2b59f0a0b922 (patch)
tree8d78ded6458714eda8a4d6c561639d7ac5766455 /wee_slack.py
parent86a8db90da64c6c3746f14692d52cab41c101bdd (diff)
downloadwee-slack-e81a2053b9d668216e4a938bd89a2b59f0a0b922.tar.gz
remove something that made this suck
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py8
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):