mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 12:02:40 +02:00
Update MotD when MotD fails to download
This commit is contained in:
@@ -729,6 +729,8 @@ bool Client::CheckUpdate(http::Request *updateRequest, bool checkSession)
|
||||
//free(data);
|
||||
if (usingAltUpdateServer && !checkSession)
|
||||
this->messageOfTheDay = String::Build("HTTP Error ", status, " while checking for updates: ", http::StatusText(status));
|
||||
else
|
||||
this->messageOfTheDay = String::Build("HTTP Error ", status, " while fetching MotD");
|
||||
}
|
||||
else if(data.size())
|
||||
{
|
||||
|
Reference in New Issue
Block a user