Commit 3ea24cb9 authored by rswindell's avatar rswindell
Browse files

Renamed sbbs_t::execfile to exec_file and execmsg to exec_msg.

Added CS_FILE_RECEIVE support.
parent a4eb70c6
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment