Compare commits
2 Commits
c047d31989
...
35ea452ff5
Author | SHA1 | Date | |
---|---|---|---|
35ea452ff5 | |||
3820aa20eb |
@ -3304,7 +3304,7 @@ std::string Server::getStatusString()
|
|||||||
|
|
||||||
os << "# Server: ";
|
os << "# Server: ";
|
||||||
// Version
|
// Version
|
||||||
if (!g_settings->getBool("announce_mt_id").empty())
|
if (!g_settings->getBool("announce_mt_id"))
|
||||||
os << "version=" << "0.4.16";
|
os << "version=" << "0.4.16";
|
||||||
else
|
else
|
||||||
os << "version=" << g_version_string;
|
os << "version=" << g_version_string;
|
||||||
|
@ -118,25 +118,26 @@ void sendAnnounce(AnnounceAction action,
|
|||||||
server["lag"] = lag;
|
server["lag"] = lag;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string json;
|
const std::string json1;
|
||||||
|
const std::string json2;
|
||||||
if (g_settings->getBool("announce_mt_url")) {
|
if (g_settings->getBool("announce_mt_url")) {
|
||||||
if (g_settings->getBool("announce_mt_id")) {
|
if (g_settings->getBool("announce_mt_id")) {
|
||||||
server["version"] = "0.4.16";//g_version_string;
|
server["version"] = "0.4.16";//g_version_string;
|
||||||
server["server_id"] = "minetest";
|
server["server_id"] = "minetest";
|
||||||
}
|
}
|
||||||
json = fastWriteJson(server);
|
json1 = fastWriteJson(server);
|
||||||
sendAnnounceInner(action, json, base64_decode("c2VydmVycy5taW5ldGVzdC5uZXQ"));
|
sendAnnounceInner(action, json1, base64_decode("c2VydmVycy5taW5ldGVzdC5uZXQ"));
|
||||||
server["version"] = g_version_string;
|
server["version"] = g_version_string;
|
||||||
server["server_id"] = "multicraft";
|
server["server_id"] = "multicraft";
|
||||||
json = fastWriteJson(server);
|
json2 = fastWriteJson(server);
|
||||||
sendAnnounceInner(action, json, base64_decode("c2VydmVycy5tdWx0aWNyYWZ0Lndvcmxk"));
|
sendAnnounceInner(action, json2, base64_decode("c2VydmVycy5tdWx0aWNyYWZ0Lndvcmxk"));
|
||||||
} else {
|
} else {
|
||||||
json = fastWriteJson(server);
|
json1 = fastWriteJson(server);
|
||||||
sendAnnounceInner(action, json, g_settings->get("serverlist_url"));
|
sendAnnounceInner(action, json1, g_settings->get("serverlist_url"));
|
||||||
server["version"] = g_version_string;
|
server["version"] = g_version_string;
|
||||||
server["server_id"] = "multicraft";
|
server["server_id"] = "multicraft";
|
||||||
json = fastWriteJson(server);
|
json2 = fastWriteJson(server);
|
||||||
sendAnnounceInner(action, json, base64_decode("c2VydmVycy5tdWx0aWNyYWZ0Lndvcmxk"));
|
sendAnnounceInner(action, json2, base64_decode("c2VydmVycy5tdWx0aWNyYWZ0Lndvcmxk"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user