src/saxdb.c (saxdb_start_record): Do not include a space just before EOL.
authorMichael Poole <mdpoole@troilus.org>
Thu, 17 Sep 2009 20:41:32 +0000 (16:41 -0400)
committerMichael Poole <mdpoole@troilus.org>
Thu, 17 Sep 2009 21:05:30 +0000 (17:05 -0400)
src/opserv.help (INVITE): Document this command.

src/opserv.help
src/saxdb.c

index 2f0a59073ae76b647a200b8284b4763c94bc33c2..4b24b3f39744489bf243c879f9dbeee7e2bfd4d8 100644 (file)
@@ -52,6 +52,8 @@
         "Edits the 'trust' for the specified IP, changing the count, duration and/or reason.",
         "You may use 0 as the duration if you do not wish the trust to ever expire, and 0 as the count for unlimited connections.",
         "$uSee Also:$u addtrust, deltrust, stats trusted");
+"INVITE" ("/msg $O INVITE #channel",
+       "Invites you to the specified channel.");
 "INVITEME" ("/msg $O INVITEME [nick]",
         "Invites the specified user (if omitted, you) to $O's debug channel.",
         "This is currently pointless, since no output is sent to the debug channel.");
index 9e342f8d43a38b36e41f231ec23a00421e178195..7cd37944dad76f46228aae230c5f5956289172ce 100644 (file)
@@ -290,11 +290,13 @@ void
 saxdb_start_record(struct saxdb_context *dest, const char *name, int complex) {
     saxdb_pre_object(dest);
     saxdb_put_qstring(dest, name);
-    saxdb_put_string(dest, " { ");
+    saxdb_put_string(dest, " {");
     int_list_append(&dest->complex, complex);
     if (complex) {
         dest->indent++;
         saxdb_put_char(dest, '\n');
+    } else {
+        saxdb_put_char(dest, ' ');
     }
 }