From: Rudolf Polzer Date: Mon, 10 Feb 2014 16:42:28 +0000 (+0100) Subject: ipban fix for engine change X-Git-Tag: xonotic-v0.8.1~120^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e9b6935e58263d814ce1238274b6fcf0b188255f;p=xonotic%2Fxonotic-data.pk3dir.git ipban fix for engine change --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 691c4930e..b828475c1 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -991,7 +991,7 @@ float PlayerInIDList(entity p, string idlist) float n, i; string s; - // NOTE: we do NOT check crypto_keyfp here, an unsigned ID is fine too for this + // NOTE: we do NOT check crypto_idfp_signed here, an unsigned ID is fine too for this if (!p.crypto_idfp) return 0; diff --git a/qcsrc/server/ipban.qc b/qcsrc/server/ipban.qc index a180547c0..e53e4f9e0 100644 --- a/qcsrc/server/ipban.qc +++ b/qcsrc/server/ipban.qc @@ -348,7 +348,7 @@ float Ban_GetClientIP(entity client) float i1, i2, i3, i4; string s; - if(client.crypto_keyfp) + if(client.crypto_idfp_signed) ban_idfp = client.crypto_idfp; else ban_idfp = string_null;