]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/newconf.c
target change: Overwrite the least recently used target with a new one.
[irc/rqf/shadowircd.git] / src / newconf.c
index 6afb2acad8c1103287a21eecbb09e0a105c49f7f..3cf15c6d5ba035e6f2de6048dcffb70362425700 100644 (file)
@@ -913,8 +913,7 @@ conf_end_auth(struct TopConf *tc)
        if ((found_conf = find_exact_conf_by_address("*", CONF_CLIENT, "*")) && found_conf->spasswd == NULL)
                conf_report_error("Ignoring redundant auth block (after *@*)");
        else if ((found_conf = find_exact_conf_by_address(yy_aconf->host, CONF_CLIENT, yy_aconf->user)) &&
-                       ( (!found_conf->spasswd && !yy_aconf->spasswd) ||
-                         (found_conf->spasswd && yy_aconf->spasswd &&
+                       (!found_conf->spasswd || (yy_aconf->spasswd &&
                            0 == irccmp(found_conf->spasswd, yy_aconf->spasswd))))
                conf_report_error("Ignoring duplicate auth block for %s@%s",
                                yy_aconf->user, yy_aconf->host);