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

Bleh, just use "*" in ERR_INVALIDMODEPARAM for the param.

Otherwise you get into trouble if client does things like:
MODE #test +l ::a
MODE #test +l :a b c
And I am too lazy to handle these cases :D
This commit is contained in:
Bram Matthys
2026-01-23 08:48:34 +01:00
parent d413959e57
commit 91930e3631
+1 -1
View File
@@ -123,7 +123,7 @@ int cmode_limit_is_ok(Client *client, Channel *channel, char mode, const char *p
if (atoi(param) <= 0)
{
sendnumeric(client, ERR_INVALIDMODEPARAM,
channel->name, 'l', param, "Channel limit (+l) needs to be a positive number");
channel->name, 'l', "*", "Channel limit (+l) needs to be a positive number");
return EX_DENY;
}
/* Any other value is valid, we just morph it */