summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-16 05:22:28 -0500
committerJune McEnroe <june@causal.agency>2020-02-16 05:22:28 -0500
commitf84ab67311cbe66c5e557138ea1c7150c9513fd8 (patch)
tree77758963fa5338a819ae491d081ca4c1bd88a27c /handle.c
parentSet defaults for various types of modes (diff)
downloadcatgirl-f84ab67311cbe66c5e557138ea1c7150c9513fd8.tar.gz
catgirl-f84ab67311cbe66c5e557138ea1c7150c9513fd8.zip
Apply colorMentions to actions
The first-two-words branch works well for "/me verbs nick".
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/handle.c b/handle.c
index c012261..d4f615e 100644
--- a/handle.c
+++ b/handle.c
@@ -672,10 +672,12 @@ static void handlePrivmsg(struct Message *msg) {
 			hash(msg->user), msg->nick, LightGray, msg->params[1]
 		);
 	} else if (action) {
+		const char *mentions = colorMentions(id, msg);
 		uiFormat(
 			id, (mention || query ? Hot : Warm), tagTime(msg),
-			"%s\35\3%d* %s\17\35\t%s",
-			(mention ? "\26" : ""), hash(msg->user), msg->nick, msg->params[1]
+			"%s\35\3%d* %s\17\35\t%s%s",
+			(mention ? "\26" : ""), hash(msg->user), msg->nick,
+			mentions, msg->params[1]
 		);
 	} else {
 		const char *mentions = colorMentions(id, msg);