aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-03-27 15:19:25 +0000
committerRyan Huber <rhuber@gmail.com>2017-03-27 15:19:25 +0000
commitc31dee0b3ffcc3f2065869bc39456af907a4c9a4 (patch)
tree01b21cd402606438a857eb9318824b71e29cdd94
parent965eac76e523b11c73470e7971c3a0acdac56ec3 (diff)
downloadwee-slack-c31dee0b3ffcc3f2065869bc39456af907a4c9a4.tar.gz
don't create a new channel ugh
-rw-r--r--wee_slack.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index cb746ce..44e848a 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1446,6 +1446,14 @@ class SlackMPDMChannel(SlackChannel):
n = kwargs.get('name')
self.set_name(n)
self.type = "group"
+ def open(self, update_remote=False):
+ self.create_buffer()
+ self.active = True
+ self.get_history()
+ if "info" in SLACK_API_TRANSLATOR[self.type]:
+ s = SlackRequest(self.team.token, SLACK_API_TRANSLATOR[self.type]["info"], {"name": self.identifier}, team_hash=self.team.team_hash, channel_identifier=self.identifier)
+ self.eventrouter.receive(s)
+ #self.create_buffer()
def set_name(self, n):
self.name = "|".join("-".join(n.split("-")[1:-1]).split("--"))
def formatted_name(self, style="default", typing=False, **kwargs):