aboutsummaryrefslogtreecommitdiff
path: root/src/irc.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-06 21:55:26 -0500
committerB. Watson <urchlay@slackware.uk>2026-03-06 21:55:26 -0500
commitc01927e51c44208722740666f20feabb2cd683d3 (patch)
tree17ccd927abc5d6bb8dcdcc19d9109f065dcf365c /src/irc.c
parent2855154aef5e0e05b5243e6308607fca2d170224 (diff)
downloadfujinet-chat-c01927e51c44208722740666f20feabb2cd683d3.tar.gz
Fix /nick (thanks, The_Doctor__).
Diffstat (limited to 'src/irc.c')
-rw-r--r--src/irc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc.c b/src/irc.c
index 7bb1bf6..e48ef6d 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -110,7 +110,7 @@ static void do_join(void) {
static void do_nick(void) {
if(streq_i(usernick, msg_src)) {
scr_print_active("You are ");
- strncpy(usernick, msg_src, 32);
+ strncpy(usernick, msg_dest, 32);
} else {
scr_print_active(msg_src);
scr_print_active(" is ");