]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
newconf: fix a warning
authorElizabeth Jennifer Myers <redacted>
Sun, 23 Jan 2011 21:56:36 +0000 (16:56 -0500)
committerElizabeth Jennifer Myers <redacted>
Sun, 23 Jan 2011 21:56:36 +0000 (16:56 -0500)
src/newconf.c

index ee01eca0931ed4d5fe835a965f492b2a4c4efd28..5991cceeb55b709f43132abb8cb9e4ba64498af7 100644 (file)
@@ -1944,7 +1944,7 @@ conf_call_set(struct TopConf *tc, char *item, conf_parm_t * value, int type)
 
        /* if it takes one thing, make sure they only passed one thing,
           and handle as needed. */
-       if(value->type & CF_FLIST && !cf->cf_type & CF_FLIST)
+       if((value->v.list->type & CF_FLIST) && !(cf->cf_type & CF_FLIST))
        {
                conf_report_error
                        ("Option %s::%s does not take a list of values.", tc->tc_name, item);