diff options
| author | Federico G. Schwindt <fgsch@lodoss.net> | 2013-11-06 21:46:53 +0000 |
|---|---|---|
| committer | Federico G. Schwindt <fgsch@lodoss.net> | 2013-11-06 21:46:53 +0000 |
| commit | 925b4de2981b55a279f28368446f0a862c621d5e (patch) | |
| tree | 0417390b76444dd946206f2c56563ed19e78629b /src | |
| parent | 48ea69d778279e7256a167e6f4147eb5766bbdda (diff) | |
| download | ngircd-925b4de2981b55a279f28368446f0a862c621d5e.tar.gz ngircd-925b4de2981b55a279f28368446f0a862c621d5e.zip | |
On bad /oper set the penalty to 10 seconds
This helps against brute-force attempts.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-oper.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |