about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-05-07 17:46:30 -0400
committerJune McEnroe <june@causal.agency>2021-05-07 17:46:30 -0400
commitd6ff04d1d3d9c87f94fd158ef6d0cda5508d5dc8 (patch)
tree98a235b1a3e96f123e8653028b6eac920afc1950
parentLimit query interface results using search.rowid DESC (diff)
downloadlitterbox-d6ff04d1d3d9c87f94fd158ef6d0cda5508d5dc8.tar.gz
litterbox-d6ff04d1d3d9c87f94fd158ef6d0cda5508d5dc8.zip
Format litterbox query interface results like scoop
With the colored context too.
Diffstat (limited to '')
-rw-r--r--litterbox.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/litterbox.c b/litterbox.c
index f219d37..a7c0e30 100644
--- a/litterbox.c
+++ b/litterbox.c
@@ -318,7 +318,10 @@ static void querySearch(struct Message *msg) {
 		if (!message) message = "";
 		if (!strcmp(user, "*")) user = nick;
 
-		format("NOTICE %s :(%s) [%s] ", msg->nick, context, time);
+		format(
+			"NOTICE %s :\3%02d%s\3: [%s] ",
+			msg->nick, color(context), context, time
+		);
 		switch (type) {
 			break; case Privmsg:
 				format("\3%d<%s>\3 %s\r\n", color(user), nick, message);