From d7f5b99dc74a3ec292b95f5d22b4829a332035df Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 16 Jul 2023 18:46:36 -0400 Subject: Factor out caps pounce doesn't request from the server --- state.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'state.c') diff --git a/state.c b/state.c index df000b5..924bb8f 100644 --- a/state.c +++ b/state.c @@ -86,6 +86,14 @@ void stateLogin( serverFormat("USER %s 0 * :%s\r\n", user, real); } +static const enum Cap DontReq = 0 + | CapConsumer + | CapPalaverApp + | CapPassive + | CapSASL + | CapSTS + | CapUnsupported; + static void handleCap(struct Message *msg) { require(msg, false, 3); enum Cap caps; @@ -96,7 +104,7 @@ static void handleCap(struct Message *msg) { } if (!strcmp(msg->params[1], "LS") || !strcmp(msg->params[1], "NEW")) { - caps &= ~(CapSASL | CapSTS | CapUnsupported); + caps &= ~DontReq; if (caps & CapEchoMessage && !(caps & CapLabeledResponse)) { caps &= ~CapEchoMessage; } -- cgit 1.4.1 '>summary refs log tree commit diff
path: root/home/.config/htop (unfollow)
Commit message (Collapse)Author
2021-09-12Replace htagml regex with strncmpJune McEnroe
Since ctags only ever produces regular expressions of the form /^re$/ or /^re/ with no other special characters, instead unescape the pattern and simply use strncmp. Running on a sqlite3.c amalgamation, the regex version takes ~37s while the strncmp version takes ~1s, producing identical output. Big win!
2021-09-11Also defer printing comment for lone close-parensJune McEnroe
2021-09-10Publish "git-comment"June McEnroe
2021-09-10Add git comment --pretty optionJune McEnroe
2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe
This fixes badly indented comments.
2021-09-08Up default min-repeat to 30 linesJune McEnroe
2021-09-08Handle dirty lines in git-commentJune McEnroe
2021-09-08Document and install git-commentJune McEnroe
2021-09-08Add repeat and all options to git-commentJune McEnroe
2021-09-08Add group threshold to git-commentJune McEnroe