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
Compare Revisions
7375a710de026c4e574ddaf380acf4da19e068ac...a5e7b69dc332a1334b669fe4bb044d5e85f094fa
Commits (1)
Fix typos and add the -pause option to the node command-lines
· a5e7b69d
Rob Swindell
authored
Mar 09, 2022
Fix issue
#372
a5e7b69d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
exec/str_cmds.js
exec/str_cmds.js
+4
-4
No files found.
exec/str_cmds.js
View file @
a5e7b69d
...
...
@@ -77,8 +77,8 @@ function str_cmds(str)
}
if
(
str
==
"
HELP
"
)
{
writeln
(
"
ERR
\t
Display curr
r
ent error log and op
p
tionally delete it as well as
"
);
writeln
(
"
\t
optionally clearing all nodes error counters.
"
);
writeln
(
"
ERR
\t
Display current error log and optionally delete it
,
as well as
"
);
writeln
(
"
\t
optionally clearing all nodes
'
error counters.
"
);
}
if
(
str
==
"
ERR
"
)
{
var
errlog
=
system
.
logs_dir
+
"
error.log
"
;
...
...
@@ -152,7 +152,7 @@ function str_cmds(str)
if
(
str
==
"
HELP
"
)
{
writeln
(
"
EVAL [string]
"
);
writeln
(
"
\t
Evaluate a JavaSc
i
rpt expression and display result.
"
);
writeln
(
"
\t
Evaluate a JavaScr
i
pt expression and display result.
"
);
}
if
(
word
==
"
EVAL
"
)
{
if
(
bbs
.
check_syspass
())
{
...
...
@@ -307,7 +307,7 @@ function str_cmds(str)
writeln
(
"
\t
executes the node utility with the passed parameters.
"
);
}
if
(
word
==
"
NODE
"
)
{
bbs
.
exec
(
bbs
.
cmdstr
(
"
%!node%.
"
)
+
str
.
substr
(
4
)
.
toLowerCase
()
,
EX_STDIO
|
EX_NATIVE
);
bbs
.
exec
(
bbs
.
cmdstr
(
"
%!node%.
-pause
"
)
+
str
.
substr
(
4
),
EX_STDIO
|
EX_NATIVE
);
return
;
}
...
...