Add assertions to try to catch IPcheck counting errors.
[ircu2.10.12-pk.git] / ircd / m_nick.c
index 18ecca5746c96994bfc82a57a33ecc4c016684aa..8b5a659d99946d7acbdb8545b8bec2205f474832 100644 (file)
@@ -247,8 +247,8 @@ int m_nick(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
    * the message below.
    */
   if (IsUnknown(acptr) && MyConnect(acptr)) {
-    ++ServerStats->is_ref;
-    IPcheck_connect_fail(&cli_ip(acptr));
+    ServerStats->is_ref++;
+    IPcheck_connect_fail(acptr);
     exit_client(cptr, acptr, &me, "Overridden by other sign on");
     return set_nick_name(cptr, sptr, nick, parc, parv);
   }
@@ -378,7 +378,7 @@ int ms_nick(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   if (IsUnknown(acptr) && MyConnect(acptr))
   {
     ServerStats->is_ref++;
-    IPcheck_connect_fail(&cli_ip(acptr));
+    IPcheck_connect_fail(acptr);
     exit_client(cptr, acptr, &me, "Overridden by other sign on");
     return set_nick_name(cptr, sptr, nick, parc, parv);
   }