Raise maximum auth attempts from 5 to 10, and reduce maxhellos to 2 from 3.
aup->authattempts++;
if (aup->authattempts > MAXAUTHATTEMPT) {
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]);
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;
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;
#define MAXSUSPENDHIT 500
/* Maximum number of times a user may attempt to auth */
#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 */
/* Maximum number of hellos in a session */
/* Maximum number of times a user may actually be authed */
#define MAXAUTHCOUNT 2
/* Maximum number of times a user may actually be authed */
#define MAXAUTHCOUNT 2