Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
3ea24cb9
Commit
3ea24cb9
authored
Mar 09, 2001
by
rswindell
Browse files
Renamed sbbs_t::execfile to exec_file and execmsg to exec_msg.
Added CS_FILE_RECEIVE support.
parent
a4eb70c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/sbbs3/execfunc.cpp
src/sbbs3/execfunc.cpp
+5
-4
No files found.
src/sbbs3/execfunc.cpp
View file @
3ea24cb9
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment