]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Silly bug fixes.
authorChris Porter <redacted>
Sat, 4 Oct 2008 22:16:04 +0000 (23:16 +0100)
committerChris Porter <redacted>
Sat, 4 Oct 2008 22:16:04 +0000 (23:16 +0100)
trusts/trusts_policy.c

index 777a28e5a1029f4378badf4463274858ce27424f..262eae5f103c13c594d3a9508c6c8cf5844aeb00 100644 (file)
@@ -9,14 +9,14 @@ static void policycheck(int hooknum, void *arg) {
   nick *np = args[0];
   long moving = (long)args[1];
   trusthost *th = gettrusthost(np);
-  trustgroup *tg = th;
+  trustgroup *tg;
 
   if(moving)
     return;
 
   if(!th) {
     if(np->ipnode->usercount > 5)
-      controlwall(NO_OPER, NL_TRUSTS, "Hard limit exceeded on IP: %s (untrusted) %d connected, 5 max.", irc_in_addr_v4_to_int(&(np->p_ipaddr)), np->ipnode->usercount);
+      controlwall(NO_OPER, NL_TRUSTS, "Hard limit exceeded on IP: %s (untrusted) %d connected, 5 max.", IPtostr(np->p_ipaddr), np->ipnode->usercount);
     return;
   }