aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-23 02:04:36 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-23 02:04:36 -0400
commitdb1343f2ec8d3b944e861fb40593d96be4ec5dda (patch)
tree58d5913dc20b83201fbdac387254a017355ddc2f /src
parent59bb76acede0fc72063485cdffe17acad5a3ac8c (diff)
downloadfujinet-chat-db1343f2ec8d3b944e861fb40593d96be4ec5dda.tar.gz
Error messages (numerics 400 to 599) go to the current screen, not [server].
Diffstat (limited to 'src')
-rw-r--r--src/irc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/irc.c b/src/irc.c
index cafd0a0..00ec89a 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -443,11 +443,13 @@ static void do_numeric(void) {
*/
case ERR_NICKNAMEINUSE:
- do_catchall(0);
- if(!regged) {
+ if(regged) {
+ scr_activate(scr_current);
+ } else {
permute_nick();
send_nick();
}
+ do_catchall(1);
break;
/* don't print these, just noise */
@@ -501,6 +503,8 @@ static void do_numeric(void) {
break;
default:
+ if(num >= 400 && num < 600)
+ scr_activate(scr_current);
do_catchall(1);
break;
}