aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2015-03-24 10:39:05 +0100
committerTollef Fog Heen <tfheen@err.no>2015-03-24 10:39:05 +0100
commit2aba0ca7eaec29b0834283911d05792086b73819 (patch)
treebeb7963ced49d5c192b89d935ea419e9556ca7f1 /wee_slack.py
parent60800f874bef343cd9871605c8e988ced1949e69 (diff)
downloadwee-slack-2aba0ca7eaec29b0834283911d05792086b73819.tar.gz
Format topic changes properly too
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 7298a8c..b444aa3 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1245,6 +1245,8 @@ def process_message(message_json):
channel.buffer_prnt(w.prefix("quit").rstrip(), text, time)
elif message_json.get("subtype", "") == "channel_join":
channel.buffer_prnt(w.prefix("join").rstrip(), text, time)
+ elif message_json.get("subtype", "") == "channel_topic":
+ channel.buffer_prnt(w.prefix("network").rstrip(), text, time)
else:
channel.buffer_prnt(name, text, time)
except: