]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Don't enforce policy until the DB is fully loaded.
authorGunnar Beutner <redacted>
Wed, 26 Jun 2013 04:31:59 +0000 (06:31 +0200)
committerGunnar Beutner <redacted>
Wed, 26 Jun 2013 04:31:59 +0000 (06:31 +0200)
--HG--
branch : shroudtrusts

trusts/trusts_policy.c

index 687a52a9193198424cec3a36a7e783ee5416cb1d..05e338d209c7f2069a2cb625ce136c7f534225ea 100644 (file)
@@ -67,7 +67,7 @@ static int checkconnectionth(const char *username, struct irc_in_addr *ip, trust
   if(messagelen>0)
     message[0] = '\0';
   
-  if(!th)
+  if(!th || !trustsdbloaded)
     return POLICY_SUCCESS;
 
   tg = th->group;