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
54e6060d
Commit
54e6060d
authored
Aug 02, 2019
by
rswindell
Browse files
Expose the new sub n_pmode setting (bitfield) as the "print_mode_neg" property.
parent
006fea09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/sbbs3/js_msg_area.c
src/sbbs3/js_msg_area.c
+6
-0
No files found.
src/sbbs3/js_msg_area.c
View file @
54e6060d
...
...
@@ -84,6 +84,7 @@ static char* msg_sub_prop_desc[] = {
,
"configured maximum number of messages before purging"
,
"configured maximum age (in days) of messages before expiration"
,
"additional print mode flags to use when printing messages - see <tt>P_*</tt> in <tt>sbbsdefs.js</tt> for details"
,
"print mode flags to <i>negate</i> when printing messages - see <tt>P_*</tt> in <tt>sbbsdefs.js</tt> for details"
/* Insert here */
,
"user has sufficient access to read messages"
,
"user has sufficient access to post messages"
...
...
@@ -265,6 +266,11 @@ BOOL DLLCALL js_CreateMsgAreaProperties(JSContext* cx, scfg_t* cfg, JSObject* su
,
NULL
,
NULL
,
JSPROP_ENUMERATE
|
JSPROP_READONLY
))
return
(
FALSE
);
if
(
!
JS_DefineProperty
(
cx
,
subobj
,
"print_mode_neg"
,
INT_TO_JSVAL
(
sub
->
n_pmode
)
,
NULL
,
NULL
,
JSPROP_ENUMERATE
|
JSPROP_READONLY
))
return
(
FALSE
);
#ifdef BUILD_JSDOCS
js_CreateArrayOfStrings
(
cx
,
subobj
,
"_property_desc_list"
,
msg_sub_prop_desc
,
JSPROP_READONLY
);
#endif
...
...
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