]> jfr.im git - irc/quakenet/newserv.git/commitdiff
CHANSERV: fix message ordering and add a health warning.
authorChris Porter <redacted>
Fri, 7 Feb 2014 23:56:23 +0000 (23:56 +0000)
committerChris Porter <redacted>
Fri, 7 Feb 2014 23:56:23 +0000 (23:56 +0000)
--HG--
branch : chanserv-live

chanserv/chanserv_messages.h

index a562f909fef5acf1ebd4c05b01a8fce32fb009d8..4cab18630a44f6c0de6488df1f2f6c726661ac58 100644 (file)
 #define EndMessages() csrawmessages; extern char *defaultmessages[MAXMESSAGES*2];
 #endif
 
+/************************ DANGER WILL ROBINSON!!! **************************/
+/* if you want to add a new message you must add it at the end.            */
+/* also don't remove any, as these messages end up as ids in the database! */
+/************************ DANGER WILL ROBINSON!!! **************************/
+
 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"),
@@ -56,7 +61,6 @@ BeginMessages() {
   msg(QM_NOCHANBANAUTOREMOVE, "Bans on $0 will not be automatically removed.", "s"),
   msg(QM_INVALIDCHANNAME, "$0 is not a valid channel name.", "s"),
   msg(QM_ALREADYREGISTERED, "$0 is already registered.", "s"),
-  msg(QM_TOOMANYCHANNELS, "User is known on too many channels.", ""),
   msg(QM_CURUSERFLAGS, "User flags for $0: $1", "ss"),
   msg(QM_WELCOMEMESSAGEIS, "Welcome message for $0: $1", "ss"),
   msg(QM_GLOBALINFO, "Default info line: $0", "s"),
@@ -244,6 +248,7 @@ BeginMessages() {
   msg(QM_TITLETOOFAST,"You have already changed your title recently.  Please wait a while and try again.",""),
   msg(QM_INACTIVEACCOUNT,"This account has not yet been activated.",""),
   msg(QM_PWTOLONG, "Sorry, but new password is too long (maximum length 10 chars)", ""),
+  msg(QM_TOOMANYCHANNELS, "User is known on too many channels.", ""),
 } 
 EndMessages()
 #endif