1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 19:14:46 +02:00

Fix bounce modes raising a warning to ircops (Unknown channel mode +& from ..)

reported by k4be.
This commit is contained in:
Bram Matthys
2020-01-18 16:52:01 +01:00
parent 48faed6938
commit ca22b6282e
+3
View File
@@ -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.