aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2018-09-02 22:12:48 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2018-09-02 22:20:41 +0200
commit6cefb708926195af328f7362fe1f297047b5afd0 (patch)
tree22dc6f4352185e44eab36a9c2b4b7fcc20be5886 /wee_slack.py
parentc8dfe1030974b7d34dbcbc805a3e1cf02d9073ee (diff)
downloadwee-slack-6cefb708926195af328f7362fe1f297047b5afd0.tar.gz
Set correct tags for topic messages
Don't mute topic messages, set the irc_topic and slack_topic tags and let people filter them as wanted.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index fedf05e..8a321da 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2632,7 +2632,7 @@ def subprocess_message_deleted(message_json, eventrouter, channel, team):
def subprocess_channel_topic(message_json, eventrouter, channel, team):
text = unhtmlescape(unfurl_refs(message_json["text"], ignore_alt_text=False))
- channel.buffer_prnt(w.prefix("network").rstrip(), text, message_json["ts"], tagset="muted")
+ channel.buffer_prnt(w.prefix("network").rstrip(), text, message_json["ts"], tagset="topic")
channel.set_topic(unhtmlescape(message_json["topic"]))
@@ -3145,6 +3145,7 @@ def tag(tagset, user=None):
# when this is a join/leave, attach for smart filter ala:
# if user in [x.strip() for x in w.prefix("join"), w.prefix("quit")]
"joinleave": "irc_smart_filter,no_highlight,log4",
+ "topic": "irc_topic,no_highlight,log3",
# catchall ?
"default": "irc_privmsg,notify_message,log1",
}