about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-22 00:51:04 -0500
committerJune McEnroe <june@causal.agency>2020-02-22 00:51:04 -0500
commit08456da07fadec93973eb28d059d9382149f3d75 (patch)
tree0cf728c2ec96f1931983981aecb920e62f90c6e0
parentUse (almost) the full range of IRC colors for nicks (diff)
downloadlitterbox-08456da07fadec93973eb28d059d9382149f3d75.tar.gz
litterbox-08456da07fadec93973eb28d059d9382149f3d75.zip
Include <>/-/* around nicks in coloring
Diffstat (limited to '')
-rw-r--r--litterbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/litterbox.c b/litterbox.c
index 2180350..0213b31 100644
--- a/litterbox.c
+++ b/litterbox.c
@@ -272,11 +272,11 @@ static void querySearch(struct Message *msg) {
 		format("NOTICE %s :(%s) [%s] ", msg->nick, context, time);
 		switch (type) {
 			break; case Privmsg:
-				format("<\3%02d%s\3> %s\r\n", color(user), nick, message);
+				format("\3%d<%s>\3 %s\r\n", color(user), nick, message);
 			break; case Notice:
-				format("-\3%02d%s\3- %s\r\n", color(user), nick, message);
+				format("\3%d-%s-\3 %s\r\n", color(user), nick, message);
 			break; case Action:
-				format("* \3%02d%s\3 %s\r\n", color(user), nick, message);
+				format("\3%d* %s\3 %s\r\n", color(user), nick, message);
 			break; case Join:
 				format("\3%02d%s\3 joined\r\n", color(user), nick);
 			break; case Part: