X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/903f5c46962b52db245bec73ebb536212e3d546e..0b48bbd5dc5821a01029214c5ccd39116468c09f:/chanserv/authcmds/auth.c diff --git a/chanserv/authcmds/auth.c b/chanserv/authcmds/auth.c index 78cf6e5a..ab9ce227 100644 --- a/chanserv/authcmds/auth.c +++ b/chanserv/authcmds/auth.c @@ -2,7 +2,7 @@ * * * CMDNAME: auth - * CMDALIASES: login + * CMDALIASES: login ircdauth * CMDLEVEL: QCMD_SECURE | QCMD_NOTAUTHED * CMDARGS: 2 * CMDDESC: Authenticates you on the bot. @@ -52,7 +52,7 @@ int csa_auth(void *source, int cargc, char **cargv, CRAlgorithm alg) { sender->nick, sender->ident, sender->host->name->content, aup->authattempts, authtype, cargv[0], cargv[1]); */ - chanservstdmessage(sender, QM_AUTHFAIL); + chanservstdmessage(sender, QM_TOOMANYAUTHATTEMPTS); cs_log(sender,"%s FAIL too many auth attempts (last attempt: %s %s %s)", authtype, authtype, cargv[0], cargv[1]); return CMD_ERROR; } @@ -135,6 +135,10 @@ int csa_completeauth(nick *sender, reguser *rup, char *authtype) { chanservstdmessage(sender, QM_EXPIRES, rup->suspendexp); return CMD_ERROR; } + if (UIsInactive(rup)) { + chanservstdmessage(sender, QM_INACTIVEACCOUNT); + return CMD_ERROR; + } /* Guarantee a unique auth timestamp for each account */ oldlastauth=rup->lastauth;