aboutsummaryrefslogtreecommitdiff
path: root/src/irc.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-17 05:52:37 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-17 05:52:37 -0400
commitded1053f8b525e78d1121fd7f0a764ec5cc8cc05 (patch)
treee3872cde44718589276550ede7d9aae4ebd75c07 /src/irc.c
parente3b45c4788189bd04ed4cf9806191363715419ce (diff)
downloadfujinet-chat-ded1053f8b525e78d1121fd7f0a764ec5cc8cc05.tar.gz
Tab complete PM nics (private screen only). Also, no need to prefix messages with /m in server or private screens.
Diffstat (limited to 'src/irc.c')
-rw-r--r--src/irc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc.c b/src/irc.c
index d34fe8d..7611cef 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -14,6 +14,7 @@
#include "nio.h"
#include "config.h"
#include "indic8.h"
+#include "complete.h"
#ifndef VERSION
#define VERSION "?????"
@@ -504,6 +505,7 @@ void select_screen(void) {
if(!s) {
if(streq_i(msg_cmd, "PRIVMSG")) { /* or maybe NOTICE? */
strncpy(last_pm_nick, msg_src, 32);
+ comp_add_pm_nick(last_pm_nick);
s = SCR_PRIV;
} else {
s = SCR_SERVER;