# HG changeset patch # User sheepluva # Date 1390481813 -3600 # Node ID b7161f00a6caa43a32a19c530e88da259b18423c # Parent bcf2e1ca2971e6fb79f7c91c0e041d86581c149a 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 diff -r bcf2e1ca2971 -r b7161f00a6ca QTfrontend/ui/widget/chatwidget.cpp --- 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 - %2 %3 %4") .arg(linkedNick(nick)) - .arg(ip) + .arg(ip == "[]"?"":ip) .arg(version) .arg(roomInfo)); } diff -r bcf2e1ca2971 -r b7161f00a6ca gameServer/HWProtoCore.hs --- 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