From 623d9e3d507c9f7db969da884bb16d14f07fa71c Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Tue, 17 Nov 2020 22:03:08 -0800
Subject: [PATCH] Don't reset line counter after executing externals.

This behavior was cut/pasted from xtrn_sec.js but doesn't play well with logon events (e.g. SBBSIMSG list) that should pause before a following CLS. As reported by altere on the I, the R, and the C.
---
 src/sbbs3/xtrn_sec.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/sbbs3/xtrn_sec.cpp b/src/sbbs3/xtrn_sec.cpp
index 2e98ca898c..9f74380983 100644
--- a/src/sbbs3/xtrn_sec.cpp
+++ b/src/sbbs3/xtrn_sec.cpp
@@ -1656,8 +1656,6 @@ bool sbbs_t::exec_xtrn(uint xtrnnum)
 
 	if(cfg.xtrn[xtrnnum]->misc & XTRN_PAUSE)
 		pause();
-	else
-		lncntr = 0;
 
     if(cfg.postxtrn_mod[0] != '\0') {
         SAFEPRINTF2(str, "%s %s", cfg.postxtrn_mod,cfg.xtrn[xtrnnum]->code);
-- 
GitLab