mirror of
https://github.com/osmarks/ngircd.git
synced 2025-04-08 08:46:39 +00:00
Add 1 second penalty for every further target on PRIVMSG/NOTICE
This reduces the possibility of flooding channels with commands like "PRIVMSG/NOTICE #a,#n,#c,... :message" a little bit. Problem noticed by Cahata -- thanks!
This commit is contained in:
parent
b24d645ca1
commit
6b62a5ec4f
@ -494,6 +494,8 @@ Send_Message(CLIENT * Client, REQUEST * Req, int ForceType, bool SendErrors)
|
||||
}
|
||||
|
||||
currentTarget = strtok_r(NULL, ",", &lastCurrentTarget);
|
||||
if (currentTarget)
|
||||
Conn_SetPenalty(Client_Conn(Client), 1);
|
||||
}
|
||||
|
||||
return CONNECTED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user