HELP produces comment syntax (leading #)
authorChristian Thaeter <ct@pipapo.org>
Tue, 16 Oct 2007 20:04:46 +0000 (22:04 +0200)
committerChristian Thaeter <ct@pipapo.org>
Tue, 16 Oct 2007 20:04:46 +0000 (22:04 +0200)
src/rxpd_connection_cmd.c

index 807d955..1e352a1 100644 (file)
@@ -410,11 +410,11 @@ rxpd_connection_cmd_HELP (int fd, short event, void* ptr)
   (void) event;
   struct rxpd_connection* self = (struct rxpd_connection*) ptr;
   //struct rxpd_base* base = self->socket->base;
-  rxpd_buffer_printf (&self->out, "# Available commands:\n\n");
-#define RXPD_CMD(cmd, help)     rxpd_buffer_printf (&self->out, "%s %s.\n", #cmd, help);
+  rxpd_buffer_printf (&self->out, "# Available commands:\n#\n");
+#define RXPD_CMD(cmd, help)     rxpd_buffer_printf (&self->out, "%s %s.\n", #cmd, help);
   RXPD_COMMANDS
 #undef RXPD_CMD
-  rxpd_buffer_printf (&self->out, "\n# general syntax is: 'COMMAND:listname\\n..data..'\n");
+  rxpd_buffer_printf (&self->out, "#\n# general syntax is: 'COMMAND:listname\\n..data..'\n");
   rxpd_connection_delete (self);
 }