Clarify NickServ REGISTER help messages; fix ?raw and ?dump errors.
authorMichael Poole <mdpoole@troilus.org>
Tue, 15 Mar 2005 23:12:58 +0000 (23:12 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 15 Mar 2005 23:12:58 +0000 (23:12 +0000)
src/nickserv.help (REGISTER): Rephrase the message about using the
same password to hopefully make it clearer.

src/opserv.c (cmd_dump, cmd_raw): Use local buffers to hold the
original message, so that parse_line() will not unsplit the line into
the "original" buffer and strip out the sentinel :.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-19

ChangeLog
src/nickserv.help
src/opserv.c

index 77557e8f2c85089972a08ebac1f10b6c5a086f5e..570c42a5d6a196be3872cdf244ba70fa25ff8f8e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,24 @@
 # arch-tag: automatic-ChangeLog--srvx@srvx.net--2005-srvx/srvx--devo--1.3
 #
 
+2005-03-15 23:12:58 GMT        Michael Poole <mdpoole@troilus.org>     patch-19
+
+    Summary:
+      Clarify NickServ REGISTER help messages; fix ?raw and ?dump errors.
+    Revision:
+      srvx--devo--1.3--patch-19
+
+    src/nickserv.help (REGISTER): Rephrase the message about using the
+    same password to hopefully make it clearer.
+    
+    src/opserv.c (cmd_dump, cmd_raw): Use local buffers to hold the
+    original message, so that parse_line() will not unsplit the line into
+    the "original" buffer and strip out the sentinel :.
+
+    modified files:
+     ChangeLog src/nickserv.help src/opserv.c
+
+
 2005-02-17 21:42:43 GMT        Michael Poole <mdpoole@troilus.org>     patch-18
 
     Summary:
index 82a33092c25cee1539e74865309bcc087c97ecab..7de7c1354551664d8481ded8b61cb8db5b0c952e 100644 (file)
 "REGISTER" {
         "0: /services/nickserv/email_required" (
         "/msg $N@$s REGISTER <account> <password> <email>",
-        "Registers a specified account with $b$N$b, adding your current user@host to your new account. You must the password you specify with $bregister$b to use $bauth$b to authenticate to your account.",
+        "Registers a specified account with $b$N$b, adding your current user@host to your new account. You must use the same password with $bauth$b to authenticate to your account.",
         "An email will be sent to the email address you give containing a cookie that will let you activate your account.  Once you have that cookie, you must use the $bcookie$b command to be able to use your account.",
         "$uSee Also:$u auth, unregister"
         );
         "1: /services/nickserv/email_enabled" (
         "/msg $N@$s REGISTER <account> <password> [email]",
-        "Registers a specified account with $b$N$b, adding your current user@host to your new account. You must the password you specify with $bregister$b to use $bauth$b to authenticate to your account.",
+        "Registers a specified account with $b$N$b, adding your current user@host to your new account. You must use the same password with $bauth$b to authenticate to your account.",
         "If you specify an email address, an email will be sent to it containing a cookie that will let you activate your account.  Once you have that cookie, you must use the $bcookie$b command to be able to use your account.",
         "$uSee Also:$u auth, unregister"
         );
         "2: !/services/nickserv/email_enabled" (
         "/msg $N@$s REGISTER <account> <password>",
-        "Registers a specified account with $b$N$b, adding your current user@host to your new account. You must the password you specify with $bregister$b to use $bauth$b to authenticate to your account.",
+        "Registers a specified account with $b$N$b, adding your current user@host to your new account. You must use the same password with $bauth$b to authenticate to your account.",
         "$uSee Also:$u auth, unregister"
         );
 };
index ddc982814aef4f31b4cce847f6108e155f5c49f0..a5d8c4ee53463a94faee8ce3e9cde5263dd170c6 100644 (file)
@@ -1604,9 +1604,9 @@ static MODCMD_FUNC(cmd_stats_memory) {
 
 static MODCMD_FUNC(cmd_dump)
 {
-    char linedup[MAXLEN], *original;
+    char linedup[MAXLEN], original[MAXLEN];
 
-    original = unsplit_string(argv+1, argc-1, NULL);
+    unsplit_string(argv+1, argc-1, original);
     safestrncpy(linedup, original, sizeof(linedup));
     /* assume it's only valid IRC if we can parse it */
     if (parse_line(linedup, 1)) {
@@ -1619,9 +1619,9 @@ static MODCMD_FUNC(cmd_dump)
 
 static MODCMD_FUNC(cmd_raw)
 {
-    char linedup[MAXLEN], *original;
+    char linedup[MAXLEN], original[MAXLEN];
 
-    original = unsplit_string(argv+1, argc-1, NULL);
+    unsplit_string(argv+1, argc-1, original);
     safestrncpy(linedup, original, sizeof(linedup));
     /* Try to parse the line before sending it; if it's too wrong,
      * maybe it will core us instead of our uplink. */