X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/08d06cd87d89688959fe86647d09b365e0b7392a..f651cddfa1748d9624e3a8b2ec2335dcde246a5c:/chanserv/chanserv.h diff --git a/chanserv/chanserv.h b/chanserv/chanserv.h index c8ddfc1c..e636e3fc 100644 --- a/chanserv/chanserv.h +++ b/chanserv/chanserv.h @@ -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 @@ -94,11 +94,11 @@ #define CHALLENGEAUTHSITE "http://www.quakenet.org/development/challengeauth/" /* Cleanup options */ -#define CLEANUP_ACCOUNT_INACTIVE 180 +#define CLEANUP_ACCOUNT_INACTIVE 180 /* make sure you update CLEANUP_AUTHHISTORY too... */ #define CLEANUP_ACCOUNT_UNUSED 3 #define CLEANUP_CHANNEL_INACTIVE 40 -#define CLEANUP_AUTHHISTORY 60 +#define CLEANUP_AUTHHISTORY 240 #define CLEANUP_MIN_CHAN_SIZE 2 @@ -144,6 +144,7 @@ #define QPRIV_VIEWCHANSUSPENSION 110 #define QPRIV_VIEWSUSPENDEDBY 111 #define QPRIV_VIEWWALLMESSAGE 112 +#define QPRIV_VIEWREALHOST 113 #define QPRIV_CHANGECHANFLAGS 200 #define QPRIV_CHANGECHANLEV 201 @@ -252,9 +253,9 @@ /* email */ #define MAX_RESEND_TIME 2*3600L /* cooling off period */ -#define VALID_EMAIL "^[-_.+[:alpha:][:digit:]]+(\\.[-_[:digit:][:alpha:]]+)*@([[:digit:][:alpha:]](-?[[:digit:][:alpha:]])*\\.)+[[:alpha:]]{2}([zmuvtgol]|fo|me|seum|op|ro)?$" +#define VALID_EMAIL "\\A[^\\s\\+@]+@([a-z0-9][a-z0-9\\-]*\\.)+[a-z]{2,}\\Z" -#define VALID_ACCOUNT_NAME "^[a-z][-a-z0-9]+$" +#define VALID_ACCOUNT_NAME "\\A[a-z][a-z0-9\\-]+\\Z" #define QMAIL_NEWACCOUNT 1 /* new account */ #define QMAIL_REQPW 2 /* requestpassword */