aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-11 06:26:04 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-11 06:26:39 -0400
commitd92bf1f7cf76d0c678ccbaea10a5ff6d41630e52 (patch)
treed890d17b83013c6f0a975f8431d478eff94f5542 /src/cmd.c
parentea47f06b8fa0ebab649ea1f7b323246d7e482438 (diff)
downloadfujinet-chat-d92bf1f7cf76d0c678ccbaea10a5ff6d41630e52.tar.gz
Remove server/nick prompts from client, add a separate config tool that loads as an init segment, with lots more options.
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd.c b/src/cmd.c
index f548b74..88bf669 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -5,6 +5,7 @@
#include "irc.h"
#include "addrs.h"
#include "screen.h"
+#include "config.h"
/* A "command" is actually anything the user types, whether or
not it starts with a /character. */
@@ -74,7 +75,7 @@ static void cmd_chan_text(void) {
/* 0x02 = ^B = enable bold */
scr_print_active("<\x02");
- scr_print_active(usernick);
+ scr_print_active(conf->nick);
scr_print_active("\x02");
/*
@@ -305,7 +306,7 @@ static void do_me(void) {
txbuf_send();
scr_print_current("\x02* ");
- scr_print_current(usernick);
+ scr_print_current(conf->nick);
scr_print_current("\x02 ");
scr_print_current(arg1);
scr_eol_current();