Add GeoIP privacy option
GeoIP allows to display country flags on servers. Clients have the ability to display flags on their own scoreboard, but the option itself is server side controlled only and thus subject to some privacy issue.
Add a client side option to prevent the server to display the country of the client if it is disallowed. Keep it simple and use a generic flag instead (UN flag).
This likely requires to extend the clientinfo string (maybe extend cg_uinfo).
qagame: add geoip privacy option
- clients can now toggle geolocation sharing using cg_allowGeoIP
- Status changed from In Progress to Feedback
Did some more testing tonight (connecting with 2 clients) and the implementation seems good.
There seem however to be an issue with clients that connect from the 2.76 UI. I guess the cg_allowGeoIP isn’t set client side when connecting, so they appear as "UN" flag (latest `else` catched it, so client→sess.uci = 246;). After a reconnect, everything should be in order. Maybe there is a way to correctly handle this use case, but this would be a temporary issue, and should be gone once players upgrade to the newer release.