]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
print the IP address, not the name, when a banned client tried to join
authorRudolf Polzer <divverent@alientrap.org>
Sun, 8 Apr 2012 18:29:12 +0000 (20:29 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 8 Apr 2012 18:29:12 +0000 (20:29 +0200)
qcsrc/server/ipban.qc

index f770dc513e7195de40324cc58f3d27df021f4894..91416b8352f9ae450e5688e12532f9ea474272f9 100644 (file)
@@ -475,7 +475,7 @@ string Ban_Enforce(float i, string reason)
                                        reason = strcat(reason, ", ");
                                reason = strcat(reason, e.netname);
                        }
-                       s = strcat(s, "^1NOTE:^7 banned client ", e.netname, "^7 has to go\n");
+                       s = strcat(s, "^1NOTE:^7 banned client ", e.netaddress, "^7 has to go\n");
                        dropclient(e);
                }
        bprint(s);