Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Log server announce on updates and deletes too (#10177)
- Loading branch information
Showing
with
8 additions
and
1 deletion.
-
+8
−1
src/serverlist.cpp
|
@@ -245,12 +245,19 @@ void sendAnnounce(AnnounceAction action, |
|
|
for (const ModSpec &mod : mods) { |
|
|
server["mods"].append(mod.name); |
|
|
} |
|
|
actionstream << "Announcing to " << g_settings->get("serverlist_url") << std::endl; |
|
|
} else if (action == AA_UPDATE) { |
|
|
if (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; |
|
|
fetch_request.url = g_settings->get("serverlist_url") + std::string("/announce"); |
|
|
fetch_request.method = HTTP_POST; |
|
|