mirror of
https://github.com/minetest/minetest.git
synced 2024-12-03 13:03:45 +01:00
Log server announce on updates and deletes too (#10177)
This commit is contained in:
parent
9eb4516cbc
commit
917e357bca
@ -245,12 +245,19 @@ void sendAnnounce(AnnounceAction action,
|
|||||||
for (const ModSpec &mod : mods) {
|
for (const ModSpec &mod : mods) {
|
||||||
server["mods"].append(mod.name);
|
server["mods"].append(mod.name);
|
||||||
}
|
}
|
||||||
actionstream << "Announcing to " << g_settings->get("serverlist_url") << std::endl;
|
|
||||||
} else if (action == AA_UPDATE) {
|
} else if (action == AA_UPDATE) {
|
||||||
if (lag)
|
if (lag)
|
||||||
server["lag"] = lag;
|
server["lag"] = lag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (action == AA_START) {
|
||||||
|
actionstream << "Announcing " << aa_names[action] << " to " <<
|
||||||
|
g_settings->get("serverlist_url") << std::endl;
|
||||||
|
} else {
|
||||||
|
infostream << "Announcing " << aa_names[action] << " to " <<
|
||||||
|
g_settings->get("serverlist_url") << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
HTTPFetchRequest fetch_request;
|
HTTPFetchRequest fetch_request;
|
||||||
fetch_request.url = g_settings->get("serverlist_url") + std::string("/announce");
|
fetch_request.url = g_settings->get("serverlist_url") + std::string("/announce");
|
||||||
fetch_request.method = HTTP_POST;
|
fetch_request.method = HTTP_POST;
|
||||||
|
Loading…
Reference in New Issue
Block a user