aboutsummaryrefslogtreecommitdiff
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
parent2855154aef5e0e05b5243e6308607fca2d170224 (diff)
downloadfujinet-chat-c01927e51c44208722740666f20feabb2cd683d3.tar.gz
Fix /nick (thanks, The_Doctor__).
-rw-r--r--README.txt7
-rw-r--r--TODO14
-rw-r--r--src/irc.c2
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 <nick> :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 ");