Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / s_conf.c
index ec96c4900cc27e34d46e9d566f1dbccd4ab1acf0..258d4a07aaa29659ce2cef0a52b3abf70a0d5584 100644 (file)
@@ -158,7 +158,7 @@ static void killcomment(struct Client *sptr, char *parv, char *filename)
 {
   FBFILE*     file = NULL;
   char        line[80];
-  char*       tmp;
+  char*       tmp = NULL;
   struct stat sb;
   struct tm*  tm;
 
@@ -498,7 +498,7 @@ check_limit_and_attach(struct Client* cptr, struct ConfItem* aconf)
        * clients connected with the same IP number
        */
       unsigned short nr = *aconf->passwd - '0';
-      if (IPcheck_nr(cptr) > nr)
+      if (ip_registry_count(cptr->ip.s_addr) > nr)
         return ACR_TOO_MANY_FROM_IP; /* Already got nr with that ip# */
     }
 #ifdef USEONE