From ca22b6282e89d2083daee7238b06fda0d80c8e15 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 18 Jan 2020 16:52:01 +0100 Subject: [PATCH] Fix bounce modes raising a warning to ircops (Unknown channel mode +& from ..) reported by k4be. --- src/modules/mode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/mode.c b/src/modules/mode.c index 88ef95307..2635d46a9 100644 --- a/src/modules/mode.c +++ b/src/modules/mode.c @@ -1359,6 +1359,9 @@ int paracount_for_chanmode_from_server(Client *client, u_int what, char mode) if (client->serv->features.chanmodes[3] && strchr(client->serv->features.chanmodes[3], mode)) return 0; /* no parameter for set, no parameter for unset */ + if (mode == '&') + return 0; /* & indicates bounce, it is not an actual mode character */ + /* If we end up here it means we have no idea if it is a parameter-eating or paramless * channel mode. That's actually pretty bad. This shouldn't happen since CHANMODES= * is sent since 2003 and the (often also required) EAUTH PROTOCTL is in there since 2010.