From c01927e51c44208722740666f20feabb2cd683d3 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 6 Mar 2026 21:55:26 -0500 Subject: Fix /nick (thanks, The_Doctor__). --- README.txt | 7 ++++--- TODO | 14 ++++++++++++++ src/irc.c | 2 +- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.txt b/README.txt index a1bc0d1..d1949bc 100644 --- a/README.txt +++ b/README.txt @@ -21,16 +21,17 @@ For now, this is pretty rudimentary. It can currently: - send/receive channel messages. +- handles bold, underscore, italic, strikethrough formatting. + - "highlights" channel text that contains the user's nick. - receive private messages (in a dedicated private messages window). +- create 'query' windows (PM with a specific user), send/receive PMs. + - server window to keep the chatty server messages from cluttering up the channel windows. -- if you use raw IRC protocol, you can send private messages: - /PRIVMSG :this is the message text. - - input box at the bottom of the screen, allows editing and can handle up to 239 characters of input. diff --git a/TODO b/TODO index eb3130f..293f1b2 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,17 @@ +FujiChat features: + +- respond to incoming CTCPs +- handle incoming PONG (with latency) +- visual and audible bell +- nick tab completion + +Other stuff: + +- error numerics should go to the current screen +- the server's spontaneous MODE at connect should go to screen 0 + +... + Don't create channel screen until we receive a message from the channel. /join ##foo won't create the screen... and if there are no screens available, we don't have to check for it. 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 "); -- cgit v1.2.3