ngircd

Free, portable and lightweight Internet Relay Chat server http://ngircd.barton.de/
Log | Files | Refs | README | LICENSE

commit 4330f5d1c9119c4461c8fb7c8cf1f78a3ea53e4d
parent 81b81c818cb60abe8bcfb1cd22769ae831b942e7
Author: Alexander Barton <alex@barton.de>
Date:   Sun, 12 Apr 2015 20:14:24 +0200

INVITE command: Enforce 1 second penalty time

This prevents flooding of the target client.

This closes #186. Reported by Cahata, thanks!

Diffstat:
Msrc/ngircd/parse.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c @@ -70,7 +70,7 @@ static COMMAND My_Commands[] = _CMD("GLINE", IRC_xLINE, CLIENT_USER|CLIENT_SERVER, 0, -1, 0), _CMD("HELP", IRC_HELP, CLIENT_USER, 0, 1, 2), _CMD("INFO", IRC_INFO, CLIENT_USER|CLIENT_SERVER, 0, 1, 2), - _CMD("INVITE", IRC_INVITE, CLIENT_USER|CLIENT_SERVER, 2, 2, 0), + _CMD("INVITE", IRC_INVITE, CLIENT_USER|CLIENT_SERVER, 2, 2, 1), _CMD("ISON", IRC_ISON, CLIENT_USER, 1, -1, 0), _CMD("JOIN", IRC_JOIN, CLIENT_USER|CLIENT_SERVER, 1, 2, 0), _CMD("KICK", IRC_KICK, CLIENT_USER|CLIENT_SERVER, 2, 3, 0),