From d6ff04d1d3d9c87f94fd158ef6d0cda5508d5dc8 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 7 May 2021 17:46:30 -0400 Subject: Format litterbox query interface results like scoop With the colored context too. --- litterbox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- cgit 1.4.1