]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Ensure we aren't kicking a client which has already been kicked
authorMattia Basaglia <mattia.basaglia@gmail.com>
Fri, 16 Jan 2015 15:26:09 +0000 (16:26 +0100)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Fri, 16 Jan 2015 15:26:09 +0000 (16:26 +0100)
qcsrc/server/ipban.qc

index 666c3c2ce218ec2d2f1042c08c7d707d3bc6bc6b..9f044b958a921900f6b2b3e6cea1fef3389e26be 100644 (file)
@@ -605,5 +605,6 @@ void Ban_KickBanClient(entity client, float bantime, float masksize, string reas
        // and kick him
        sprint(client, strcat("Kickbanned: ", reason, "\n"));
         */
-       dropclient(client);
+       if (IS_REAL_CLIENT(client))
+               dropclient(client);
 }