aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2016-03-26 14:14:40 -0700
committerRyan Huber <rhuber@gmail.com>2016-03-26 14:14:40 -0700
commit21d2d3460dba37924aea18305c81ae90ef5d2a70 (patch)
treead2581f945129f473eeb692c4aac8a768ca3dcb1
parentb1770652b856407f76095e5a513631c340d5f072 (diff)
downloadwee-slack-21d2d3460dba37924aea18305c81ae90ef5d2a70.tar.gz
new channels have # prepended as they should have
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 4a1d000..85065be 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1412,7 +1412,7 @@ def process_channel_created(message_json):
server.channels.find(message_json["channel"]["name"]).open(False)
else:
item = message_json["channel"]
- server.add_channel(Channel(server, item["name"], item["id"], False))
+ server.add_channel(Channel(server, item["name"], item["id"], False, prepend_name="#"))
server.buffer_prnt("New channel created: {}".format(item["name"]))