hirc

IRC client
Log | Files | Refs

commit 1b18070b6af118ec82dd29e9c1ba40a0a1ba0f63
parent 84866a79785970ae519164e0aac30fb5d9cef83c
Author: hhvn <dev@hhvn.uk>
Date:   Wed,  8 Dec 2021 16:55:00 +0000

main.c commands.c: use / when refering to commands in docs

Diffstat:
Mcommands.c | 3++-
Mmain.c | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/commands.c b/commands.c @@ -24,6 +24,7 @@ static void command_topic(struct Server *server, char *str); static void command_bind(struct Server *server, char *str); static void command_help(struct Server *server, char *str); static void command_echo(struct Server *server, char *str); +static void command_grep(struct Server *server, char *str); static char *command_optarg; enum { @@ -579,7 +580,7 @@ command_help(struct Server *server, char *str) { if (strcmp(str, "commands") == 0) { hist_format(selected.history, Activity_none, HIST_SHOW|HIST_TMP|HIST_MAIN, "SELF_UI :Commands:"); for (i=0; commands[i].name && commands[i].func; i++) - hist_format(selected.history, Activity_none, HIST_SHOW|HIST_TMP|HIST_MAIN, "SELF_UI : %s", commands[i].name); + hist_format(selected.history, Activity_none, HIST_SHOW|HIST_TMP|HIST_MAIN, "SELF_UI : /%s", commands[i].name); return; } diff --git a/main.c b/main.c @@ -237,7 +237,7 @@ main(int argc, char *argv[]) { printf(".Sh COMMANDS\n"); printf(".Bl -tag\n"); for (i=0; commands[i].name && commands[i].func; i++) { - printf(".It %s\n", commands[i].name); + printf(".It /%s\n", commands[i].name); printf(".Bd -literal -compact\n"); for (j=0; commands[i].description[j]; j++) printf("%s\n", commands[i].description[j]);