]> jfr.im git - irc/quakenet/newserv.git/commitdiff
CHANSERV: disable 'user X attempted to auth 1000 times' warnings.
authorChris Porter <redacted>
Sun, 15 Feb 2009 20:25:13 +0000 (20:25 +0000)
committerChris Porter <redacted>
Sun, 15 Feb 2009 20:25:13 +0000 (20:25 +0000)
Raise maximum auth attempts from 5 to 10, and reduce maxhellos to 2 from 3.

chanserv/authcmds/auth.c
chanserv/chanserv.h

index e5949b9604e43e29eae33af65a3c23c0c47aa7cc..47d7554b34259fc0b240bd2fac12fe0396fb2150 100644 (file)
@@ -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;
index 413cca4bb225138ad50affc7d425090d0d36306c..3e4e0c26d997bfe2113d11f35eff4c1a2af5bc27 100644 (file)
 #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