Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
33d09b8e
Commit
33d09b8e
authored
1 month ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
A little JSDOC updated text and beautification
parent
1b116b68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#7911
failed
1 month ago
Stage: build
Stage: test
Stage: cleanup
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/js_user.c
+10
-9
10 additions, 9 deletions
src/sbbs3/js_user.c
with
10 additions
and
9 deletions
src/sbbs3/js_user.c
+
10
−
9
View file @
33d09b8e
...
...
@@ -1385,24 +1385,25 @@ js_user_close(JSContext *cx, uintN argc, jsval *arglist)
}
static
jsSyncMethodSpec
js_user_functions
[]
=
{
{
"compare_ars"
,
js_chk_ar
,
1
,
JSTYPE_BOOLEAN
,
JSDOCSTR
(
"string ars"
)
,
JSDOCSTR
(
"Verify user meets access requirements string<br>"
{
"compare_ars"
,
js_chk_ar
,
1
,
JSTYPE_BOOLEAN
,
JSDOCSTR
(
"requirements"
)
,
JSDOCSTR
(
"Verify and return <tt>true</tt> if user meets the specified access requirements string.<br"
"Always returns <tt>true</tt> when passed <tt>null</tt>, <tt>undefined</tt>, or an empty string.<br>"
"Note: For the current user of the terminal server, use <tt>bbs.compare_ars()</tt> instead."
)
,
310
},
{
"adjust_credits"
,
js_adjust_credits
,
1
,
JSTYPE_BOOLEAN
,
JSDOCSTR
(
"count"
)
,
JSDOCSTR
(
"Adjust user's credits by <i>count</i> (negative to subtract)"
)
,
JSDOCSTR
(
"Adjust user's credits by <i>count</i> (negative to subtract)
.
"
)
,
314
},
{
"adjust_minutes"
,
js_adjust_minutes
,
1
,
JSTYPE_BOOLEAN
,
JSDOCSTR
(
"count"
)
,
JSDOCSTR
(
"Adjust user's extra minutes <i>count</i> (negative to subtract)"
)
,
JSDOCSTR
(
"Adjust user's extra minutes <i>count</i> (negative to subtract)
.
"
)
,
314
},
{
"posted_message"
,
js_posted_msg
,
1
,
JSTYPE_BOOLEAN
,
JSDOCSTR
(
"[count]"
)
,
JSDOCSTR
(
"Adjust user's posted-messages statistics by <i>count</i> (default: 1) (negative to subtract)"
)
,
JSDOCSTR
(
"Adjust user's posted-messages statistics by <i>count</i> (default: 1) (negative to subtract)
.
"
)
,
314
},
{
"sent_email"
,
js_sent_email
,
1
,
JSTYPE_BOOLEAN
,
JSDOCSTR
(
"[count] [,bool feedback]"
)
,
JSDOCSTR
(
"Adjust user's email/feedback-sent statistics by <i>count</i> (default: 1) (negative to subtract)"
)
,
JSDOCSTR
(
"Adjust user's email/feedback-sent statistics by <i>count</i> (default: 1) (negative to subtract)
.
"
)
,
314
},
{
"uploaded_file"
,
js_uploaded_file
,
1
,
JSTYPE_BOOLEAN
,
JSDOCSTR
(
"[bytes] [,files]"
)
,
JSDOCSTR
(
"Adjust user's files/bytes-uploaded statistics"
)
,
JSDOCSTR
(
"Adjust user's files/bytes-uploaded statistics
.
"
)
,
314
},
{
"downloaded_file"
,
js_downloaded_file
,
1
,
JSTYPE_BOOLEAN
,
JSDOCSTR
(
"[dir-code] [file path | name] [bytes] [,file-count]"
)
,
JSDOCSTR
(
"Handle the full or partial successful download of a file.<br>"
...
...
@@ -1410,8 +1411,8 @@ static jsSyncMethodSpec js_user_functions[] = {
,
31800
},
{
"get_time_left"
,
js_get_time_left
,
1
,
JSTYPE_NUMBER
,
JSDOCSTR
(
"start_time"
)
,
JSDOCSTR
(
"Return the user's available remaining time online, in seconds, "
"based on the passed <i>start_time</i> value (in time_t format)<br>"
"Note: this method does not account for pending forced timed events<br>"
"based on the passed <i>start_time</i> value (in time_t format)
.
<br>"
"Note: this method does not account for pending forced timed events
.
<br>"
"Note: for the pre-defined user object on the BBS, you almost certainly want bbs.get_time_left() instead."
)
,
31401
},
{
"close"
,
js_user_close
,
0
,
JSTYPE_VOID
,
JSDOCSTR
(
""
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment