hide complete IP of other users, when non-admin requests player info. showing the first two parts of the IP was kinda pointless to begin with (what for?) and has recently lead to increased abuse and lobby flooding due to bots collecting/posting IP tracking information
authorsheepluva
Thu, 23 Jan 2014 13:56:53 +0100
changeset 10061 b7161f00a6ca
parent 10060 bcf2e1ca2971
child 10062 8ef80bd0402f
hide complete IP of other users, when non-admin requests player info. showing the first two parts of the IP was kinda pointless to begin with (what for?) and has recently lead to increased abuse and lobby flooding due to bots collecting/posting IP tracking information
QTfrontend/ui/widget/chatwidget.cpp
gameServer/HWProtoCore.hs
--- a/QTfrontend/ui/widget/chatwidget.cpp	Thu Jan 23 13:24:28 2014 +0400
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Thu Jan 23 13:56:53 2014 +0100
@@ -590,7 +590,7 @@
 {
     addLine("msg_PlayerInfo", QString(" >>> %1 - <span class=\"ipaddress\">%2</span> <span class=\"version\">%3</span> <span class=\"location\">%4</span>")
         .arg(linkedNick(nick))
-        .arg(ip)
+        .arg(ip == "[]"?"":ip)
         .arg(version)
         .arg(roomInfo));
 }
--- a/gameServer/HWProtoCore.hs	Thu Jan 23 13:24:28 2014 +0400
+++ b/gameServer/HWProtoCore.hs	Thu Jan 23 13:56:53 2014 +0100
@@ -88,7 +88,7 @@
             if teamsInGame cl > 0 then "(playing)" else "(spectating)"
             else
             ""
-    let hostStr = if isAdminAsking then host cl else cutHost $ host cl
+    let hostStr = if isAdminAsking then host cl else B.empty
     if noSuchClient then
         return []
         else