From 3ea24cb9372e12378489ec5390cc3117d73c065f Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 9 Mar 2001 22:02:00 +0000 Subject: [PATCH] Renamed sbbs_t::execfile to exec_file and execmsg to exec_msg. Added CS_FILE_RECEIVE support. --- src/sbbs3/execfunc.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sbbs3/execfunc.cpp b/src/sbbs3/execfunc.cpp index 4acb746ac5..fba7ecbeba 100644 --- a/src/sbbs3/execfunc.cpp +++ b/src/sbbs3/execfunc.cpp @@ -654,7 +654,6 @@ int sbbs_t::exec_function(csi_t *csi) return(0); case CS_FILE_GET: - if(!fexist(csi->str)) { bputs(text[FileNotFound]); return(0); } @@ -684,6 +683,8 @@ int sbbs_t::exec_function(csi_t *csi) case CS_FILE_PUT: if(!chksyspass(0)) return(0); + + case CS_FILE_RECEIVE: menu("ulprot"); mnemonics(text[ProtocolOrQuit]); strcpy(str,"Q"); @@ -779,11 +780,11 @@ int sbbs_t::exec_function(csi_t *csi) if(*(csi->ip-1)>=CS_MSG_SET_AREA && *(csi->ip-1)<=CS_MSG_UNUSED1) { csi->ip--; - return(execmsg(csi)); } + return(exec_msg(csi)); } - if(*(csi->ip-1)>=CS_FILE_SET_AREA && *(csi->ip-1)<=CS_FILE_UNUSED1) { + if(*(csi->ip-1)>=CS_FILE_SET_AREA && *(csi->ip-1)<=CS_FILE_RECEIVE) { csi->ip--; - return(execfile(csi)); } + return(exec_file(csi)); } errormsg(WHERE,ERR_CHK,"shell function",*(csi->ip-1)); return(0); -- GitLab