Skip to content

Commit 844bc4a

Browse files
committed
System Touch
1 parent 379e3fd commit 844bc4a

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

source/national/NationalFinanceIDFeeder.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,24 @@ private static void financePrompt(final Connection CONN, final NationalFinanceID
175175
for (;;)
176176
{
177177
String input = prompt(CONN, line + " > ");
178-
if (input == null || input.equalsIgnoreCase("quit") || input.equalsIgnoreCase("exit")) break;
178+
if (input == null || input.equalsIgnoreCase("quit") || input.equalsIgnoreCase("exit"))
179+
{
180+
// Clean shutdown: log disconnect, clear proxy state, print MOTD
181+
logSessionEvent(NFID.nationalId, "quit", "", 0);
182+
N21Store.clearProxySelection(NFID.nationalId);
183+
write(CONN, "");
184+
write(CONN, " ╔══════════════════════════════════════════════════════════╗");
185+
write(CONN, " ║ Thank you for using the N21 National Finance System. ║");
186+
write(CONN, " ║ ║");
187+
write(CONN, " ║ \"The strength of a nation lies in the homes of its ║");
188+
write(CONN, " ║ people.\" — Abraham Lincoln ║");
189+
write(CONN, " ║ ║");
190+
write(CONN, " ║ Stay focused. Work hard. Help your neighbor. ║");
191+
write(CONN, " ║ Your effort today builds a better tomorrow. ║");
192+
write(CONN, " ╚══════════════════════════════════════════════════════════╝");
193+
write(CONN, "");
194+
break;
195+
}
179196

180197
// Single system component print per input received (green/OID_MESSAGING)
181198
commons.CommonRails.printSystemComponent(MSG_OWNER, MSG_OWNER.hashCode(),

0 commit comments

Comments
 (0)