From 87e42cc62768435dea48a86a60729cd5696f67f1 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 6 Feb 2020 22:59:49 -0500 Subject: Color notices LightGray by default --- handle.c | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'handle.c') diff --git a/handle.c b/handle.c index ab482fd..fb49206 100644 --- a/handle.c +++ b/handle.c @@ -294,18 +294,26 @@ static void handlePrivmsg(struct Message *msg) { bool notice = (msg->cmd[0] == 'N'); bool action = isAction(msg); bool mention = !mine && isMention(msg); - const char *italic = (action ? "\35" : ""); - const char *reverse = (mention ? "\26" : ""); - uiFormat( - id, (!notice && (mention || query) ? Hot : Warm), tagTime(msg), - "%s%s\3%d%s%s%s\3%s\t%s", - italic, reverse, hash(msg->user), - (action ? "* " : notice ? "-" : "<"), - msg->nick, - (action ? "" : notice ? "-" : ">"), - reverse, - msg->params[1] - ); + if (notice) { + uiFormat( + id, Warm, tagTime(msg), + "%s\3%d-%s-\17\3%d\t%s", + (mention ? "\26" : ""), hash(msg->user), msg->nick, + LightGray, msg->params[1] + ); + } else if (action) { + 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] + ); + } else { + uiFormat( + id, (mention || query ? Hot : Warm), tagTime(msg), + "%s\3%d<%s>\17\t%s", + (mention ? "\26" : ""), hash(msg->user), msg->nick, msg->params[1] + ); + } } static void handlePing(struct Message *msg) { -- cgit 1.4.0 ame='id' value='a803eccd84cde8678908eb546eb9554e9993dbd4'/>
path: root/etc/code.map (unfollow)
Commit message (Collapse)Author
2024-06-10Add first roll of film from June 8June McEnroe
2024-06-10Cope with not having an EXIF infoJune McEnroe
2024-06-10Resize using target pixel counts for consistencyJune McEnroe
This will resize film scans to about the same size as for the digital photos.
2024-06-10Add The Girl Who Was Convinced...June McEnroe
Not much there. The illustrations are very nice though.
2024-06-09Add photos from May 31June McEnroe
2024-06-09Use monospace on photo pagesJune McEnroe
2024-06-09Put lens and (future) film at the tops of photo pagesJune McEnroe
2024-05-22Remove use of sysexits.hJune McEnroe
2024-05-22Add photo descriptions from 05-03 and 05-06June McEnroe
2024-05-21Fix = precedence in whenJune McEnroed17f&follow=1'>Add "Come On Petunia"June McEnroe
2020-11-13Add x4 to LESSJune McEnroe
2020-11-04Remove modified sensitivity settingsJune McEnroe
2020-10-29Remove editJune McEnroe
2020-10-27Switch gr alias back to git rebaseJune McEnroe
2020-10-27Allow cd host: to cd to same path over sshJune McEnroe
2020-10-27Use SendEnv for cd host:pathJune McEnroe
2020-10-27Allow cd host:path over sshJune McEnroe
2020-10-07Use mandoc -T utf8 for text.June McEnroe
2020-09-20Add The Awakened KingdomJune McEnroe
2020-09-12Move /opt/local back, cheat port select to use system manJune McEnroe
2020-09-12Move /opt/local behind /usr againJune McEnroe
2020-09-12Enable toc in cgit renderings of man pagesJune McEnroe
2020-09-11Install mandoc on macOSJune McEnroe
2020-09-11Rewrite install script yet againJune McEnroe
2020-09-11Remove NetBSD from install scriptJune McEnroe
2020-09-11Use MacPorts rather than pkgsrcJune McEnroe
2020-09-11Add debian VM name to sshJune McEnroe
2020-09-11Add influencer tweetJune McEnroe
2020-09-10Add The Kingdom of GodsJune McEnroe
2020-09-07Add SunglassesJune McEnroe
2020-09-06Add Between the BreathsJune McEnroe
2020-09-04Open /dev/tty in nudgeJune McEnroe
2020-09-04Add nudgeJune McEnroe
2020-09-03Build fbclock with -lzJune McEnroe
2020-08-29Add tweets from retweetsJune McEnroe