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

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

parent 4450e21e
No related branches found
No related tags found
No related merge requests found
......@@ -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