From 8ad5bcdbd87c0adc0910623129d0cbf3b59e567f Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 1 Aug 2001 15:56:00 +0000
Subject: [PATCH] Fixed bug in user_event() - would only run first xtrn
 configured for particular event.

---
 src/sbbs3/xtrn_sec.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/sbbs3/xtrn_sec.cpp b/src/sbbs3/xtrn_sec.cpp
index c26ae3c943..2b6726c915 100644
--- a/src/sbbs3/xtrn_sec.cpp
+++ b/src/sbbs3/xtrn_sec.cpp
@@ -1508,7 +1508,8 @@ bool sbbs_t::exec_xtrn(uint xtrnnum)
 /****************************************************************************/
 bool sbbs_t::user_event(user_event_t event)
 {
-    uint i;
+    uint	i;
+	bool	success=false;
 
 	for(i=0;i<cfg.total_xtrns;i++) {
 		if(cfg.xtrn[i]->event!=event)
@@ -1516,10 +1517,10 @@ bool sbbs_t::user_event(user_event_t event)
 		if(!chk_ar(cfg.xtrn[i]->ar,&useron)
 			|| !chk_ar(cfg.xtrnsec[cfg.xtrn[i]->sec]->ar,&useron))
 			continue;
-		return(exec_xtrn(i)); 
+		success=exec_xtrn(i); 
 	}
 
-	return(false);
+	return(success);
 }
 
 
-- 
GitLab