]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/chanserv_messages.h
CHANSERV: clarify HELLO messages after a suggestion from .support.
[irc/quakenet/newserv.git] / chanserv / chanserv_messages.h
index c5af813e397a86e32438c3db52853308c1a70e2d..b708475f10a8bdcd4a198e8651d4b9597f4cb4ef 100644 (file)
@@ -1,7 +1,12 @@
 #ifndef __CHANSERV_MESSAGES_H
 #define __CHANSERV_MESSAGES_H
 
-#define MAXMESSAGES  200
+#define Q9_FORMAT_TIME "%d/%m/%y %H:%M GMT"
+#define TIMELEN 30
+
+#define Q9_LOG_FORMAT_TIME "%d/%m/%y %H:%M:%S"
+
+#define MAXMESSAGES  250
 
 #ifdef COMPILING_MESSAGES
 #define msg(token, message, args) message, args
@@ -15,9 +20,9 @@
 
 BeginMessages() {
   msg(QM_PROTECTED, "Channel $0 is protected by $1.", "ss"),
-  msg(QM_UNKNOWNCMD, "Unknown command $0.  Type SHOWCOMMANDS for a list of available commands.", "s"),
+  msg(QM_UNKNOWNCMD, "Unknown command $0. Type SHOWCOMMANDS for a list of available commands.", "s"),
   msg(QM_SECUREONLY, "To prevent sensitive information being accidentally send to malicious users\non other networks, when using the $0 command, you must use\n/msg $1@$2.", "sss"),
-  msg(QM_AUTHEDONLY, "$0 is only available to authed users.  Try AUTH to authenticate with your\naccount, or HELLO to create an account.", "s"),
+  msg(QM_AUTHEDONLY, "$0 is only available to authed users. Try AUTH to authenticate with your\naccount, or HELLO to create an account.", "s"),
   msg(QM_UNAUTHEDONLY, "$0 is not available once you have authed.", "s"),
   msg(QM_COMMANDLIST, "The following commands are available to you.\nFor more information on a specific command, type HELP <command>:", ""),
   msg(QM_ENDOFLIST, "End of list.", ""),
@@ -55,14 +60,14 @@ BeginMessages() {
   msg(QM_WELCOMEMESSAGEIS, "Welcome message for $0: $1", "ss"),
   msg(QM_GLOBALINFO, "Default info line: $0", "s"),
   msg(QM_CHANNELINFO, "Info line on $0: $1", "ss"),
-  msg(QM_PROTECTEDNICK, "$0 is a protected helper or oper nick.  Please use a different nickname.", "s"),
+  msg(QM_PROTECTEDNICK, "$0 is a protected helper or oper nick. Please use a different nickname.", "s"),
   msg(QM_NICKWASFAKED, "I created a fakeuser $0 to prevent your nick being stolen.", "s"),
   msg(QM_NOTPROTECTED, "Sorry, your nick $0 is not protected.", "s"),
-  msg(QM_SAMEAUTH, "$0 is authed as $1.  Cannot reclaim nick.", "ss"),
+  msg(QM_SAMEAUTH, "$0 is authed as $1. Cannot reclaim nick.", "ss"),
   msg(QM_AUTHFAIL, "Username or password incorrect.", ""),
   msg(QM_AUTHOK, "You are now logged in as $0.", "s"),
-  msg(QM_NEWACCOUNT, "User $0 created successfully.\nInformation about how to access and use your new account will be sent to your email address, $1.\nIf you do not see an email soon be sure to check your spam folder.", "ss"),
-  msg(QM_AUTHNAMEINUSE, "A user with that name already exists.  If you have said HELLO before, use AUTH to\nlogin, or REQUESTPASSWORD if you have forgotten the password.  Otherwise,\nplease change your nick and try again.", ""),
+  msg(QM_NEWACCOUNT, "Account $0 created successfully.\nInformation about how to access and use your new account will be sent to your email address, $1.\nIf you do not see an email soon be sure to check your spam folder.", "ss"),
+  msg(QM_AUTHNAMEINUSE, "Someone already has the account name $0!\nIf this is your account use AUTH to login, otherwise please change your nick using /NICK and try again.", "s"),
   msg(QM_ALREADYONCHAN, "You're already on $0.", "s"),
   msg(QM_NOTONCHAN, "You're not on $0.", "s"),
   msg(QM_ALREADYOPPED, "You're already opped on $0.", "s"),
@@ -89,10 +94,10 @@ BeginMessages() {
   msg(QM_WHOIS_INFO, "Info           : $0", "s"),
   msg(QM_WHOIS_COMMENT, "Staff comment  : $0", "s"),
   msg(QM_WHOIS_FLAGS, "User flags     : $0", "s"),
-  msg(QM_WHOIS_CREATED, "User created   : $0", "s"),
+  msg(QM_WHOIS_CREATED, "User created   : $0", "T"),
   msg(QM_WHOIS_CHANHEADER, "Known on the following channels:\nChannel                        Flags", ""),
   msg(QM_WHOIS_EMAIL, "Email address  : $0", "s"),
-  msg(QM_WHOIS_EMAILSET, "Email last set : $0", "s"),
+  msg(QM_WHOIS_EMAILSET, "Email last set : $0", "T"),
   msg(QM_COMMENT, "Staff comment for $0: $1.", "ss"),
   msg(QM_NOCOMMENT, "No staff comment for $0.", "s"),
   msg(QM_BADAUTH, "$0: Your account has been deleted or suspended.", "s"),
@@ -128,12 +133,12 @@ BeginMessages() {
   msg(QM_WHOIS_USERLANG, "Language       : $0", "s"),
   msg(QM_CHANTYPEIS, "Channel type for $0 is: $1", "ss"),
   msg(QM_STATSHEADER, "Statistics for $0:", "s"),
-  msg(QM_STATSADDED, "Date added: $0", "s"),
-  msg(QM_STATSJOINS, "Since $0: maximum size $1, $2 joins ($3 joins/day).", "sddg"),
-  msg(QM_STATSLASTACTIVE, "Last active: $0", "s"),
+  msg(QM_STATSADDED, "Date added: $0", "T"),
+  msg(QM_STATSJOINS, "Since $0: maximum size $1, $2 joins ($3 joins/day).", "Tddg"),
+  msg(QM_STATSLASTACTIVE, "Last active: $0", "T"),
   msg(QM_AUTHSUSPENDED, "Your Q account is suspended.", ""),
   msg(QM_REASON, "Reason: $0", "s"),
-  msg(QM_EXPIRES, "Expires: $0", "s"),
+  msg(QM_EXPIRES, "Expires: $0", "T"),
   msg(QM_TOOMANYAUTHS, "Too many users AUTH'd to this account.", ""),
   msg(QM_INVALIDDURATION, "Duration must be between 1d and 1M.", ""),
   msg(QM_DISCONNECTINGUSER, "Disconnecting $0 (authed as $1)", "ss"),
@@ -144,24 +149,24 @@ BeginMessages() {
   msg(QM_RESULTCOUNT, "Found $0 $1$2.", "uss"),
   msg(QM_SUSPENDKILL, "Attention: Your Q account has been suspended. You are being disconnected.", ""),
   msg(QM_LISTFLAGSHEADER, "Username:       Flags:            Suspended: Email:                         Last user@host:", ""),
-  msg(QM_SUSPENDUSERLISTHEADER, "Username:       Suspend type: Suspended by:   Date suspended: Expires:        Reason:", ""),
-  msg(QM_SUSPENDCHANLISTHEADER, "Channel:                       Suspended by:   Date suspended: Reason:", ""),
+  msg(QM_SUSPENDUSERLISTHEADER, "Username:       Suspend type: Suspended by:   Date suspended:     Expires:        Reason:", ""), /* @TIMELEN */
+  msg(QM_SUSPENDCHANLISTHEADER, "Channel:                       Suspended by:   Date suspended:     Reason:", ""), /* @TIMELEN */
   msg(QM_NOREQUESTOWNER, "You cannot request ownership of $0 as there is a channel $1 present.", "ss"),
   msg(QM_GRANTEDOWNER, "You have been granted ownership of $0.", "s"),
-  msg(QM_AUTHHISTORYHEADER, "#:  User:                                              Authed:         Disconnected:   Reason:", ""),
+  msg(QM_AUTHHISTORYHEADER, "#:  User:                                              Authed:             Disconnected:       Reason:", ""), /* @TIMELEN */
   msg(QM_CURDOMAINMODES, "Current modes on $0: $1", "ss"),
   msg(QM_SPEWDOMAINHEADER, "Domain:             Users:  Flags:", ""),
   msg(QM_DOMAINLIMIT, "Sorry, no more accounts are allowed from this email domain.", ""),
   msg(QM_PWTOWEAK, "Password too weak - You need to avoid repeating characters, and have different character types (e.g. 1 number and 1 letter)", ""),
   msg(QM_GIVEOWNERNOTMASTER, "User $0 is not a master on $1 - you must promote user to master status first.", "ss"),
   msg(QM_GIVEOWNERALREADYOWNER, "User $0 is already an owner on $1.", "ss"),
-  msg(QM_GIVEOWNERNEEDHASH, "WARNING: This command will give COMPLETE control over $0 to $1,\nincluding the ability to remove you as owner.  If you are sure you want to\ndo this, type: GIVEOWNER $2 #$3 $4", "sssss"),
+  msg(QM_GIVEOWNERNEEDHASH, "WARNING: This command will give COMPLETE control over $0 to $1,\nincluding the ability to remove you as owner. If you are sure you want to\ndo this, type: GIVEOWNER $2 #$3 $4", "sssss"),
   msg(QM_GIVEOWNERWRONGHASH, "Hash value incorrect, try again.", ""),
   msg(QM_SHOWINGDURATION, "Showing $0 for last $1.", "ss"),
   msg(QM_INVALIDACCOUNTNAME, "Change your nickname to something with none of the following characters: `~^[]{}|_\\", ""),
   msg(QM_CHALLENGEBADALGORITHM, "Invalid digest algorithm.", ""),
   msg(QM_NOCHALLENGE, "Challenge has either not been requested or has expired.", ""),
-  msg(QM_USEGIVEOWNER, "For security reasons it is not possible to give the owner flag to other users\nusing CHANLEV.  Use GIVEOWNER if you really wanted to do this.", ""),
+  msg(QM_USEGIVEOWNER, "For security reasons it is not possible to give the owner flag to other users\nusing CHANLEV. Use GIVEOWNER if you really wanted to do this.", ""),
   msg(QM_NOFLAGSPECIFIED, "You must specify at least one valid flag to add.", ""),
   msg(QM_NEWBANALREADYBANNED, "New ban is already contained within existing ban: $0", "s"),
   msg(QM_NEWBANOVERLAPS, "New ban would replace at least one existing ban ($0), use UNBANMASK $1 first if you want to set this ban.", "ss"),
@@ -174,12 +179,12 @@ BeginMessages() {
   msg(QM_WARNNOTREMOVEDPERMBAN, "Warning: not removing registered ban $0 from $1.", "ss"),
   msg(QM_MAXHELLOLIMIT, "Sorry, the registration service is unavailable to you at this time. Please try again later.", ""),
   msg(QM_ADDRESSLIMIT, "Too many accounts exist from this email address.", ""),
-  msg(QM_DOMAINBANNED, "That email address has been blocked.", ""),
+  msg(UNUSED_1, "", ""),
   msg(QM_TYPEHELPFORHELP, "For more information, type HELP $0.", "s"),
   msg(QM_REQUESTPASSPRIVUSER, "Cannot send password for that account.", ""),
   msg(QM_EMAILMATCHESOLD, "The new email address is the same as current one.", ""),
   msg(QM_INVALIDLIMIT, "Supplied autolimit is invalid: $0", "s"),
-  msg(QM_ACCOUNTLOCKED, "This account has recently been modified. It will be unlocked on $0.", "s"),
+  msg(QM_ACCOUNTLOCKED, "This account has recently been modified. It will be unlocked on $0.", "T"),
   msg(QM_ACCOUNTNOTLOCKED, "That account is not locked.", ""),
   msg(QM_RESETOK, "Your old account settings have been restored, please check your email.", ""),
   msg(QM_BADRESETCODE, "Bad reset code.", ""),
@@ -196,9 +201,9 @@ BeginMessages() {
   msg(QM_OTHERUSERAUTHED, "Warning: $0 ($1@$2) authed with your password.", "sss"),
   msg(QM_STATSRESET, "Resettable statistics reset for $0.", "s"),
   msg(QM_CHANLEVEMPTIEDCHANNEL, "The channel has been deleted since the last known user was removed.", ""),
-  msg(QM_CHANLEVCHANGED, "Done.  Flags for $0 on $1 are now: $2.", "sss"),
-  msg(QM_CHANLEVREMOVED, "Done.  User $0 is no longer known on $1.", "ss"),
-  msg(QM_CHANLEVNOCHANGE, "Nothing changed.  This could be because you specified an impossible flag combination or don't have enough access.", ""),
+  msg(QM_CHANLEVCHANGED, "Done. Flags for $0 on $1 are now: $2.", "sss"),
+  msg(QM_CHANLEVREMOVED, "Done. User $0 is no longer known on $1.", "ss"),
+  msg(QM_CHANLEVNOCHANGE, "Nothing changed. This could be because you specified an impossible flag combination or don't have enough access.", ""),
   msg(QM_USERSHEADER, "Users currently on $0:\nNick            Username        Flags        Host", "s"),
   msg(QM_EMPTYCHAN, "Channel $0 is currently empty.", "s"),
   msg(QM_USERSSUMMARY, "Total $0 users: $1 opped, $2 voiced, $3 others, $4 with flags ($5 ops, $6 masters)", "ddddddd"),
@@ -206,13 +211,21 @@ BeginMessages() {
   msg(QM_USERSUSPENDEDTYPE,   "Suspend type   : $0", "s"),
   msg(QM_USERSUSPENDEDBY,     "Suspended by   : $0", "s"),
   msg(QM_USERSUSPENDEDREASON, "Suspend reason : $0", "s"),
-  msg(QM_USERSUSPENDEDAT,     "Suspended at   : $0", "s"),
+  msg(QM_USERSUSPENDEDAT,     "Suspended at   : $0", "T"),
   msg(QM_USERSUSPENDEDEXPIRY, "Suspend expiry : $0", "s"),
   msg(QM_INVALIDDOMAIN, "$0 is not a valid domain.", "s"),
   msg(QM_SHORT_COMMENT, "Staff comment: $0", "s"),
   msg(QM_CHANLEV_SUSPENDREASON, "Suspended: $0", "s"),
-  msg(QM_CHANLEV_SUSPENDSINCE, "Suspended since: $0", "s"),
+  msg(QM_CHANLEV_SUSPENDSINCE, "Suspended since: $0", "T"),
   msg(QM_CHANLEV_SUSPENDBY, "Suspended by: $0", "s"),
+  msg(QM_TRUNCATED, "Warning: list truncated to $0 items.", "d"),
+  msg(QM_WHOIS_PASSSET, "Pass last set  : $0", "T"),
+  msg(QM_TICKETEXPIRED, "Sorry, you've taken too long to log in (ticket has expired).", ""),
+  msg(QM_TICKETNOTYETVALID, "The supplied login credentials are not valid (ticket not yet valid).", ""),
+  msg(QM_CONFIGURATIONERROR, "Configuration error, contact an IRC Operator.", ""),
+  msg(QM_INVALIDHMAC, "The supplied login credentials are not valid (bad HMAC).", ""),
+  msg(QM_PASSEMAILCHANGED, "Auth failed: account password has been changed since you logged in.", ""),
+  msg(QM_REASONREQUIRED, "Supply a decent reason.", ""),
 } 
 EndMessages()
 #endif