Fixes to improve portability (especially to OS X, Solaris, OpenBSD).
[ircu2.10.12-pk.git] / ircd / client.c
index 8bfdfe8a01a686413e6d80316c90a91847d599e5..e978f77fbaa417c3df17223e6a4687263c4e4558 100644 (file)
@@ -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.