Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / s_user.c
index 1b42061621c9facb7d952cc5130c5dc7361e32f2..1c93ad4188d816305b1f2b8766a4a7c926694266 100644 (file)
@@ -781,7 +781,7 @@ int set_nick_name(struct Client* cptr, struct Client* sptr,
          && GlineLastMod(agline) > lastmod && !IsBurstOrBurstAck(cptr))
        gline_resend(cptr, agline);
     }
-    if (!ip_registry_remote_connect(sptr)) {
+    if (!ip_registry_remote_connect(new_client)) {
        sendcmdto_one(&me, CMD_KILL, new_client, "%C :%s (Too many connections from your host -- Ghost)",
                      new_client,me.name);
        return exit_client(cptr,new_client,&me,"Too many connections from your host -- throttled");