diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-19 03:02:42 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-19 03:02:42 -0400 |
| commit | 95dac9109c821c8f905e0209b31b62c9d52ff300 (patch) | |
| tree | 9d381a31c53f1cdb52a4448338d711ce01597822 /src/cmd.c | |
| parent | 451f57131522c68b84d38c0bf79b31dafdd9c56a (diff) | |
| download | fujinet-chat-95dac9109c821c8f905e0209b31b62c9d52ff300.tar.gz | |
Add /RESET command and nreset() func. Mainly for testing.
Diffstat (limited to 'src/cmd.c')
| -rw-r--r-- | src/cmd.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -33,6 +33,7 @@ static void do_quit(void); static void do_quote(void); static void do_topic(void); static void do_ver(void); +static void do_reset(void); typedef struct { char *cmd; @@ -66,6 +67,7 @@ cmd_t command_defs[] = { { "QUIT", do_quit, 0 }, { "QUOTE", do_quote, 1 }, { "TOPIC", do_topic, 0 }, + { "RESET", do_reset, 0 }, { "VER", do_ver, 0 }, { "VERSION", do_ver, 0 }, { 0, 0 } @@ -73,6 +75,11 @@ cmd_t command_defs[] = { cmd_t *cmd_def; +static void do_reset(void) { + extern unsigned char nreset(void); + nreset(); +} + static void cmd_chan_text(void) { scr_activate(scr_current); |
