From 8b7293fa40034bbe84336d75730c9880040ca8de Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 10 Apr 2001 01:27:00 +0000
Subject: [PATCH] Separate Event Logging window support (via eprintf).

---
 src/sbbs3/exec.cpp     | 5 ++++-
 src/sbbs3/execmisc.cpp | 8 ++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/sbbs3/exec.cpp b/src/sbbs3/exec.cpp
index 00971af80c..7a88346542 100644
--- a/src/sbbs3/exec.cpp
+++ b/src/sbbs3/exec.cpp
@@ -1030,7 +1030,10 @@ int sbbs_t::exec(csi_t *csi)
 				putmsg(cmdstr((char*)csi->ip,path,csi->str,(char*)buf),P_SAVEATR|P_NOABORT);
 				break;
 			case CS_PRINT_LOCAL:
-				lputs(cmdstr((char*)csi->ip,path,csi->str,(char*)buf));
+				if(online==ON_LOCAL)
+					eprintf("%s",cmdstr((char*)csi->ip,path,csi->str,(char*)buf));
+				else
+					lputs(cmdstr((char*)csi->ip,path,csi->str,(char*)buf));
 				break;
 			case CS_PRINT_REMOTE:
 				putcom(cmdstr((char*)csi->ip,path,csi->str,(char*)buf));
diff --git a/src/sbbs3/execmisc.cpp b/src/sbbs3/execmisc.cpp
index 7a45d9005f..70326129f4 100644
--- a/src/sbbs3/execmisc.cpp
+++ b/src/sbbs3/execmisc.cpp
@@ -83,8 +83,12 @@ int sbbs_t::exec_misc(csi_t* csi, char *path)
 					vsprintf(tmp,str,(char*)arglist);
 					if(op==VAR_PRINTF)
 						putmsg(cmdstr(tmp,path,csi->str,buf),P_SAVEATR|P_NOABORT);
-					else
-						lputs(cmdstr(tmp,path,csi->str,buf));
+					else {
+						if(online==ON_LOCAL)
+							eprintf("%s",cmdstr(tmp,path,csi->str,buf));
+						else
+							lputs(cmdstr(tmp,path,csi->str,buf));
+					}
 					return(0);
 				case SHOW_VARS:
 					bprintf("shell     str=(%08lX) %s\r\n"
-- 
GitLab