aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-01-24 21:21:33 -0800
committerRyan Huber <rhuber@gmail.com>2017-01-24 21:21:33 -0800
commit869fbd8cbffd49b041cabe80f49371a7514a8eb3 (patch)
tree50e08a1e95ddfcd6e514b9b7d9e3abbdbcbec8bb /wee_slack.py
parent3061a6d23454530b4da361c3404eea7adde0b9b6 (diff)
downloadwee-slack-869fbd8cbffd49b041cabe80f49371a7514a8eb3.tar.gz
derp
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 7dbb449..231b641 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1683,9 +1683,9 @@ def process_group_joined(message_json):
item = message_json["channel"]
item["prepend_name"] = "#"
if item["name"].startswith("mpdm-"):
- self.add_channel(MpdmChannel(self, **item))
+ server.add_channel(MpdmChannel(server, **item))
else:
- self.add_channel(GroupChannel(self, **item))
+ server.add_channel(GroupChannel(server, **item))
def process_group_archive(message_json):
channel = server.channels.find(message_json["channel"])
@@ -1727,8 +1727,8 @@ def process_im_created(message_json):
server.channels.find(channel_name).open(False)
else:
item = message_json["channel"]
- item['name'] = self.users.find(item["user"]).name
- self.add_channel(DmChannel(self, **item))
+ item['name'] = server.users.find(item["user"]).name
+ server.add_channel(DmChannel(server, **item))
server.buffer_prnt("New direct message channel created: {}".format(item["name"]))