]> jfr.im git - irc/quakenet/newserv.git/commitdiff
CHANSERV: tell user when they can't attempts to auth any more, and drop max attempts...
authorChris Porter <redacted>
Sun, 7 Sep 2014 22:11:02 +0000 (23:11 +0100)
committerChris Porter <redacted>
Sun, 7 Sep 2014 22:11:02 +0000 (23:11 +0100)
--HG--
branch : chanserv-live

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

index e0a6f7f947fbba9e479e6d7356863e56d7c3a9f5..ab9ce2271ab963cf1d4b0df7c62cc4ab08366877 100644 (file)
@@ -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;
   }
index 432080d6ae8061ad27bf8ea018fab9876dcf5ff3..3161b6c41bec1b6e7b598cbda680a1e57daa7b11 100644 (file)
@@ -76,7 +76,7 @@
 #define   MAXSUSPENDHIT       500
 
 /* Maximum number of times a user may attempt to auth */
-#define   MAXAUTHATTEMPT      10
+#define   MAXAUTHATTEMPT      5
 
 /* Maximum number of hellos in a session */
 #define   MAXHELLOS           2
index 9a4d545d2416e996d96a78f0e89f314385a2fd78..cbd87f9734ca8ccd57e240f1e97952c731be63cc 100644 (file)
@@ -250,6 +250,7 @@ BeginMessages() {
   msg(QM_PWTOLONG, "Sorry, but new password is too long (maximum length 10 chars)", ""),
   msg(QM_TOOMANYCHANNELS, "User is known on too many channels.", ""),
   msg(QM_PWINVALID, "Password contains invalid characters.", ""),
+  msg(QM_TOOMANYAUTHATTEMPTS, "Too many auth attempts -- reconnect to QuakeNet to try again.", ""),
 } 
 EndMessages()
 #endif