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
a5e7b69d
Commit
a5e7b69d
authored
Mar 09, 2022
by
Rob Swindell
💬
Browse files
Fix typos and add the -pause option to the node command-lines
Fix issue
#372
parent
7375a710
Changes
1
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)
...
@@ -77,8 +77,8 @@ function str_cmds(str)
}
}
if
(
str
==
"
HELP
"
)
{
if
(
str
==
"
HELP
"
)
{
writeln
(
"
ERR
\t
Display curr
r
ent error log and op
p
tionally delete it as well as
"
);
writeln
(
"
ERR
\t
Display current error log and optionally delete it
,
as well as
"
);
writeln
(
"
\t
optionally clearing all nodes error counters.
"
);
writeln
(
"
\t
optionally clearing all nodes
'
error counters.
"
);
}
}
if
(
str
==
"
ERR
"
)
{
if
(
str
==
"
ERR
"
)
{
var
errlog
=
system
.
logs_dir
+
"
error.log
"
;
var
errlog
=
system
.
logs_dir
+
"
error.log
"
;
...
@@ -152,7 +152,7 @@ function str_cmds(str)
...
@@ -152,7 +152,7 @@ function str_cmds(str)
if
(
str
==
"
HELP
"
)
{
if
(
str
==
"
HELP
"
)
{
writeln
(
"
EVAL [string]
"
);
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
(
word
==
"
EVAL
"
)
{
if
(
bbs
.
check_syspass
())
{
if
(
bbs
.
check_syspass
())
{
...
@@ -307,7 +307,7 @@ function str_cmds(str)
...
@@ -307,7 +307,7 @@ function str_cmds(str)
writeln
(
"
\t
executes the node utility with the passed parameters.
"
);
writeln
(
"
\t
executes the node utility with the passed parameters.
"
);
}
}
if
(
word
==
"
NODE
"
)
{
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
;
return
;
}
}
...
...
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