aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-16 05:44:48 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-16 05:44:48 -0400
commit90d92d8ef647ee866121c2932210b648409a2708 (patch)
treeb2403c5cf4e9aa38d151d16335d91b3b524201cb
parent59d7d0c8574bd53005afdeb841b8c1ee5d20cb2e (diff)
downloadfujinet-chat-90d92d8ef647ee866121c2932210b648409a2708.tar.gz
After (re)joining channels at connect, switch to screen 3 if it's a channel.
-rw-r--r--TODO2
-rw-r--r--src/irc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/TODO b/TODO
index 2604568..83d8654 100644
--- a/TODO
+++ b/TODO
@@ -15,8 +15,6 @@ Other stuff:
- The Start+E editbox-only mode should be exited when the user
presses Return (or shift-clear, or I guess anything that hides
the editbox).
-- Idea inspired by pusakat: after joining channels on connect, it
- should switch to the first one (screen 3).
- Status indicators # M J etc should disappear at some point. When
the user switches windows. Also maybe there should be a timer.
- ^U works, but is slow (calls backspace() in a loop, which does a
diff --git a/src/irc.c b/src/irc.c
index 676c421..1b1e635 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -444,6 +444,8 @@ static void do_numeric(void) {
case ERR_NOMOTD:
hide_motd = 0;
cmd_rejoin_chans();
+ if(scr_names[2][0] == '#')
+ scr_display(2);
break;
case RPL_NAMREPLY: