aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index eae2e1d..a5b4c9e 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1428,6 +1428,11 @@ def process_message(message_json, cache=True):
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)
+ elif text.startswith("_") and text.endswith("_"):
+ text = text[1:-1]
+ if name != channel.server.nick:
+ text = name + " " + text
+ channel.buffer_prnt(w.prefix("action").rstrip(), text, time)
else:
channel.buffer_prnt(name, text, time)