From b6b3e89091f941ab6ba3ea014e7f5bfaf4aab69b Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Windows 11)" <rob@synchro.net>
Date: Sun, 2 Feb 2025 23:45:35 -0800
Subject: [PATCH] Actually use the (first) shell we found that the user meets
 the requirements

As discovered and reported by Deuce and Nelgin
---
 src/sbbs3/logon.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/sbbs3/logon.cpp b/src/sbbs3/logon.cpp
index 504168350f..5c3022c0ca 100644
--- a/src/sbbs3/logon.cpp
+++ b/src/sbbs3/logon.cpp
@@ -196,6 +196,8 @@ bool sbbs_t::logon()
 					break;
 			if (i == cfg.total_shells)
 				useron.shell = 0;
+			else
+				useron.shell = i;
 		}
 	}
 
-- 
GitLab