From: Federico G. Schwindt Date: Wed, 6 Nov 2013 21:46:53 +0000 (+0000) Subject: On bad /oper set the penalty to 10 seconds X-Git-Tag: rel-22-rc1~101 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=925b4de2981b55a279f28368446f0a862c621d5e On bad /oper set the penalty to 10 seconds This helps against brute-force attempts. --- diff --git a/src/ngircd/irc-oper.c b/src/ngircd/irc-oper.c index 260346c7..0b50bca6 100644 --- a/src/ngircd/irc-oper.c +++ b/src/ngircd/irc-oper.c @@ -50,7 +50,8 @@ Bad_OperPass(CLIENT *Client, char *errtoken, char *errmsg) { Log(LOG_WARNING, "Got invalid OPER from \"%s\": \"%s\" -- %s", Client_Mask(Client), errtoken, errmsg); - return IRC_WriteErrClient(Client, ERR_PASSWDMISMATCH_MSG, + IRC_SetPenalty(Client, 10); + return IRC_WriteStrClient(Client, ERR_PASSWDMISMATCH_MSG, Client_ID(Client)); } /* Bad_OperPass */