Skip to content
Snippets Groups Projects
Commit 2faa619e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

mod_ar is not a pointer, it's an array.

parent 659f6e0d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -279,8 +279,7 @@ static JSBool js_sub_get(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
*vp = BOOLEAN_TO_JSVAL(p->user == NULL || is_user_subop(p->cfg, p->subnum, p->user, p->client));
break;
case SUB_PROP_IS_MODERATED:
if(p->cfg->sub[p->subnum]->mod_ar != NULL
&& p->cfg->sub[p->subnum]->mod_ar[0] != 0
if(p->cfg->sub[p->subnum]->mod_ar[0] != 0
&& p->user != NULL
&& chk_ar(p->cfg,p->cfg->sub[p->subnum]->mod_ar, p->user, p->client))
*vp = JSVAL_TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment