From df6bc07f44ea3974ba7376d8e3c2b04b0422bf7c Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 2 Apr 2021 17:03:10 -0400 Subject: Skip STATUSMSG prefixes This feature is rarely used, so just skip STATUSMSG prefixes in the target so messages get routed correctly. --- handle.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'handle.c') diff --git a/handle.c b/handle.c index d889f8e..9f323d1 100644 --- a/handle.c +++ b/handle.c @@ -270,6 +270,9 @@ static void handleReplyISupport(struct Message *msg) { } else if (!strcmp(key, "CHANTYPES")) { if (!msg->params[i]) continue; set(&network.chanTypes, msg->params[i]); + } else if (!strcmp(key, "STATUSMSG")) { + if (!msg->params[i]) continue; + set(&network.statusmsg, msg->params[i]); } else if (!strcmp(key, "PREFIX")) { strsep(&msg->params[i], "("); char *modes = strsep(&msg->params[i], ")"); @@ -1196,6 +1199,9 @@ static void colorMentions(struct Cat *cat, uint id, struct Message *msg) { static void handlePrivmsg(struct Message *msg) { require(msg, true, 2); + if (network.statusmsg) { + msg->params[0] += strspn(msg->params[0], network.statusmsg); + } bool query = !strchr(network.chanTypes, msg->params[0][0]); bool server = strchr(msg->nick, '.'); bool mine = !strcmp(msg->nick, self.nick); -- cgit 1.4.1 75c5b1aa7a3d6c0693bc456&follow=1'>diff
path: root/bin/man1 (unfollow)
Commit message (Expand)Author
2020-06-16Add LC_COLLATE=C to ls aliasJune McEnroe
2020-06-11Fix pbd for neovimJune McEnroe
2020-06-11Alias sudo=doas if availableJune McEnroe
2020-06-11Add all VMs to ssh configJune McEnroe
2020-06-08Add additional permission for linking with LibreSSLJune McEnroe
2020-06-08Replace __DECONST with regular castsJune McEnroe
2020-06-08Replace __printflike with __attribute__((format(printf, ...)))June McEnroe
2020-06-08Replace __dead2 with __attribute__((noreturn))June McEnroe
2020-06-08Replace __FBSDID macros with commentsJune McEnroe
2020-06-08Remove reference to FreeBSD-specific libedit hackJune McEnroe
2020-06-08Prefix mandoc with exec in about-filterJune McEnroe
2020-06-07Remove mktemp options from mkbuiltins, mktokensJune McEnroe
2020-06-07Cast z_stream fields to size_tJune McEnroe
2020-06-07Call static_assert by _Static_assertJune McEnroe
2020-06-07Add OpenBSD to install.shJune McEnroe
2020-06-03Add The Song of AchillesJune McEnroe
2020-06-01Allow redirecting input in everJune McEnroe
2020-05-31Add %c conversion to c scriptJune McEnroe
2020-05-31Add c script to READMEJune McEnroe
2020-05-31Add c scriptJune McEnroe
2020-05-31Update mdoc source URLsJune McEnroe
2020-05-26Remove unfinished PSF fontsJune McEnroeEnroe
2022-09-18Remove doc/pdfJune McEnroe
Linkrot.
2022-09-11Reread A Closed and Common OrbitJune McEnroe
Book make me cry like a little baby. All time favourite.
2022-09-09Add I've Got a Time BombJune McEnroe
What a relief after 3 unbearably straight and awful books in a row. A wonderful mess.
2022-09-02Update "Care" with initial electrolysis reportJune McEnroe
2022-08-17Add The Book of Form and EmptinessJune McEnroe
There are some nice things in here that I would really like in any other book, but not this one.
2022-08-15Load dates from ~/.config/when/datesJune McEnroe
2022-08-15Allow names with prefixes of months and daysJune McEnroe
2022-08-15Add named dates to whenJune McEnroe
2022-08-14Remove tweets text fileJune McEnroe
Such link rot.
2022-08-04Add Conversations With FriendsJune McEnroe
The better of the two, but largely the same. I feel like these books are a bit too autobiographical, but I don't know if I'm allowed to accuse an author of that. My real problem is that I read these books as largely uncritical of their characters. They behave in nonsense ways, are mostly uncritical of their own behaviour, and don't really have arcs of growth or change. I suppose this book had a bit of one, but only in the last two chapters.
2022-07-30Add Normal PeopleJune McEnroe
Unbearably straight. Eyerolls and sighs per page off the charts. Shout out to Joanna, I guess. I kinda like the lack of quotation marks though to be honest. After half of the Ruth Ozeki novel and now this, I need to get back to some genre fiction.
2022-07-26Rewrite glitch from new pngoJune McEnroe
2022-07-26Update Care with time-to-ID and piercingsJune McEnroe
2022-07-26Add -w to upJune McEnroe
2022-07-13Set push.autoSetupRemoteJune McEnroe
2022-07-08Remove TOURJune McEnroe
There is not that much distinct stuff here anymore.
2022-07-03Add The Bone Shard EmperorJune McEnroe
Suffers a little bit from middle book but I really enjoyed it. Read it faster than the first one too, despite its length.
2022-06-25Bump xterm font size to 12June McEnroe
2022-06-10Handle subshells (and functions) inside substitutionsJune McEnroe
2022-06-10Switch to jorts Install scriptJune McEnroe
2022-06-08Indicate if still reading or no resultsJune McEnroe
2022-06-08Add Maiden, Mother, CroneJune McEnroe
Mixed bag like most collections of short stories. Some of them are pretty good. The author of the worst written story also has the worst written bio.
2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe
2022-06-03Set line number on File linesJune McEnroe
2022-06-03Stop polling stdin after EOFJune McEnroe
2022-06-02Set TABSIZE=4June McEnroe
Absolutely indiscriminately.
2022-06-02Do basic match highlightingJune McEnroe
2022-06-02Clean up parsing a littleJune McEnroe
2022-06-02Don't duplicate path stringJune McEnroe
2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe
For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine.
2022-06-02Add initial working version of qfJune McEnroe
2022-05-29Set prompt for okshJune McEnroe