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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user