lunixbochs/uberserver — pull request #10 by TomFyuri (2012-06-03 10:19:07+00:00)
Title: Implemeting feature - "HideCountry" for uberserver.

Implemeting feature - "HideCountry" for uberserver.
Admins (for example NightWatch by sending command) can set the flag for paranoid people to 'hide'/'unhide' their country.

This was tested multiple times with mysql, tas way of storing and LAN. I haven't tested with sqlite though.

---MYSQL instructions:
Database needs to be modified accordinly.
ALTER TABLE `users` ADD `hidecountry` INT AFTER `access`;
UPDATE `users` SET `hidecountry` = '0' WHERE `users`.`id` > 0;
OR
ALTER TABLE `users` ADD `hidecountry` INT NOT NULL AFTER `access`;
Either way should be fine. (I prefer 1st, obvious difference is that if its not NULL its filled with 0 by default)

---TAS accounts.txt instructions:
If --accounts is used it's vital to modify LegacyUsers.py (Step 1) otherwise bad things happen.
Backup accounts.txt just in case. It should be perfectly compatible with previous accounts.txt.