From 36e0bbc4cd783a826313de57fe77edf35e912d49 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 10 Feb 2020 20:58:14 -0500 Subject: Split on <> in colorMentions This allows it to color the nick in the common case of pasting " something they said" into the chat. Technically it should color the brackets too but that would be too much work. --- handle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'handle.c') diff --git a/handle.c b/handle.c index 0db7fd9..ce56a51 100644 --- a/handle.c +++ b/handle.c @@ -510,11 +510,11 @@ static const char *colorMentions(size_t id, struct Message *msg) { if (!str) err(EX_OSERR, "fmemopen"); while (*mention) { - size_t skip = strspn(mention, ", "); + size_t skip = strspn(mention, ",<> "); fwrite(mention, skip, 1, str); mention += skip; - size_t len = strcspn(mention, ", "); + size_t len = strcspn(mention, ",<> "); char punct = mention[len]; mention[len] = '\0'; fprintf(str, "\3%02d%s\3", completeColor(id, mention), mention); -- cgit 1.4.0 input type='submit' value='switch'/> IRC client
about summary refs log tree commit diff
Commit message (Collapse)Author
2018-09-13Rewrite UI againJune McEnroe
The persistent topic is gone and the status line is now at the top. The status formatting still needs to be reworked. I also want to try showing the nick in the input window so it really looks like your next message.
2018-09-12Add note about C-oJune McEnroe
Why are there so few well usable ctrl key bindings?
2018-09-12Use formatParse split to position input cursorJune McEnroe
2018-09-12Factor out IRC formatting parsingJune McEnroe
2018-09-11Add /help equivalent to /manJune McEnroe
2018-09-11Don't render every PM as a pingJune McEnroe
2018-09-11Add urlOpenMatchJune McEnroe
2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe
2018-09-10Set LESSSECURE=1 in man.shJune McEnroe
Ridiculous.
2018-09-10Add /man commandJune McEnroe
2018-09-10Install man page in chrootJune McEnroe
2018-09-10Install man pageJune McEnroe
2018-09-10Split keys into subsections and document colorsJune McEnroe
2018-09-10Add "blank" lines to chatte.1June McEnroe
2018-09-10Document key bindings in chatte.1June McEnroe
2018-09-08Document slash commands in chatte.1June McEnroe