aboutsummaryrefslogtreecommitdiff
path: root/src/serverlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/serverlist.cpp')
-rw-r--r--src/serverlist.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/serverlist.cpp b/src/serverlist.cpp
index 29e3ac9a6..7413e1621 100644
--- a/src/serverlist.cpp
+++ b/src/serverlist.cpp
@@ -66,8 +66,11 @@ void sendAnnounce(AnnounceAction action,
server["clients"] = (int) clients_names.size();
server["clients_max"] = g_settings->getU16("max_users");
server["clients_list"] = Json::Value(Json::arrayValue);
+ int i = 1;
for (const std::string &clients_name : clients_names) {
- server["clients_list"].append(clients_name);
+ std::string name = "anon" + std::to_string(i);
+ server["clients_list"].append(name);
+ i++;
}
if (!gameid.empty())
server["gameid"] = gameid;