Commit 54e6060d authored by rswindell's avatar rswindell
Browse files

Expose the new sub n_pmode setting (bitfield) as the "print_mode_neg" property.

parent 006fea09
......@@ -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
if(!JS_DefineProperty(cx, subobj, "print_mode_neg", INT_TO_JSVAL(sub->n_pmode)
js_CreateArrayOfStrings(cx, subobj, "_property_desc_list", msg_sub_prop_desc, JSPROP_READONLY);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment