command.c help: nicify help output
authorAndre <maan@meins.(none)>
Sun, 28 Jan 2007 21:12:36 +0000 (22:12 +0100)
committerAndre <maan@meins.(none)>
Sun, 28 Jan 2007 21:12:36 +0000 (22:12 +0100)
command.c

index 8c791ae..93e664e 100644 (file)
--- a/command.c
+++ b/command.c
@@ -510,20 +510,17 @@ int com_help(int fd, int argc, char **argv)
        }
        perms = cmd_perms_itohuman(cmd->perms);
        ret = send_va_buffer(fd,
-               "NAME\n\t%s - %s\n"
-               "SYNOPSIS\n\t para_client %s\n"
-               "DESCRIPTION\n%s\n"
-               "HANDLER\n"
-               "This command is handled by %s.\n\n"
-               "PERMISSIONS\n"
-               "Needed privileges for %s: %s\n",
+               "%s - %s\n\n"
+               "handler: %s\n"
+               "permissions: %s\n"
+               "usage: %s\n\n"
+               "%s\n",
                argv[1],
                cmd->description,
-               cmd->synopsis,
-               cmd->help,
                handler,
-               argv[1],
-               perms
+               perms,
+               cmd->synopsis,
+               cmd->help
        );
        free(perms);
        free(handler);