X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=blobdiff_plain;f=ircd%2Fclient.c;h=e978f77fbaa417c3df17223e6a4687263c4e4558;hp=8bfdfe8a01a686413e6d80316c90a91847d599e5;hb=79035436c61e2b58004b47f250ab1e54744a88d6;hpb=64a7ec5dcf5a0bb0f76df3d36f57d798822bd6d0 diff --git a/ircd/client.c b/ircd/client.c index 8bfdfe8..e978f77 100644 --- a/ircd/client.c +++ b/ircd/client.c @@ -173,8 +173,10 @@ client_set_privs(struct Client *client, struct ConfItem *oper) defaults = PrivHas(&oper->privs, PRIV_PROPAGATE) ? &privs_global : &privs_local; else if (PrivHas(&oper->conn_class->privs_dirty, PRIV_PROPAGATE)) defaults = PrivHas(&oper->conn_class->privs, PRIV_PROPAGATE) ? &privs_global : &privs_local; - else - assert(0 && "Oper has no propagation and neither does connection class"); + else { + assert(0 && "Oper has no propagation and neither does connection class"); + return; + } /* For each feature, figure out whether it comes from the operator * conf, the connection class conf, or the defaults, then apply it.