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