From 399759d4ce3cc39620270b91d298d0d03e6304ab Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Sun, 22 Dec 2024 14:36:20 -0800
Subject: [PATCH] Don't exit(non-zero) from this script

A non-zero exit from str_cmds.js (where this script is loaded) will terminate
the call/session. We don't need to call exit() at all from this script.

This fixes issue #848, thank you for the report
---
 exec/viewimsgs.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/viewimsgs.js b/exec/viewimsgs.js
index 0b4a4efd97..32c4859665 100644
--- a/exec/viewimsgs.js
+++ b/exec/viewimsgs.js
@@ -44,4 +44,4 @@ while (bbs.online && !console.aborted) {
 }
 if(!displayed)
 	writeln("Sorry, no messages.");
-exit(displayed);
+displayed;
-- 
GitLab