From: Chris Porter Date: Sun, 15 Feb 2009 20:25:13 +0000 (+0000) Subject: CHANSERV: disable 'user X attempted to auth 1000 times' warnings. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/81f75feace225bcf65493604477a0c023c6c5327 CHANSERV: disable 'user X attempted to auth 1000 times' warnings. Raise maximum auth attempts from 5 to 10, and reduce maxhellos to 2 from 3. --- diff --git a/chanserv/authcmds/auth.c b/chanserv/authcmds/auth.c index e5949b96..47d7554b 100644 --- a/chanserv/authcmds/auth.c +++ b/chanserv/authcmds/auth.c @@ -46,9 +46,12 @@ int csa_auth(void *source, int cargc, char **cargv, CRAlgorithm alg) { aup->authattempts++; if (aup->authattempts > MAXAUTHATTEMPT) { +/* if ((aup->authattempts % 100) == 0) chanservwallmessage("Warning: User %s!%s@%s attempted to auth %d times. Last attempt: %s %s %s", sender->nick, sender->ident, sender->host->name->content, aup->authattempts, authtype, cargv[0], cargv[1]); +*/ + chanservstdmessage(sender, QM_AUTHFAIL); cs_log(sender,"%s FAIL too many auth attempts (last attempt: %s %s %s)", authtype, authtype, cargv[0], cargv[1]); return CMD_ERROR; diff --git a/chanserv/chanserv.h b/chanserv/chanserv.h index 413cca4b..3e4e0c26 100644 --- a/chanserv/chanserv.h +++ b/chanserv/chanserv.h @@ -53,10 +53,10 @@ #define MAXSUSPENDHIT 500 /* Maximum number of times a user may attempt to auth */ -#define MAXAUTHATTEMPT 5 +#define MAXAUTHATTEMPT 10 /* Maximum number of hellos in a session */ -#define MAXHELLOS 3 +#define MAXHELLOS 2 /* Maximum number of times a user may actually be authed */ #define MAXAUTHCOUNT 2