diff --git a/src/Components/Modules/News.cpp b/src/Components/Modules/News.cpp index a3765d55..460dc084 100644 --- a/src/Components/Modules/News.cpp +++ b/src/Components/Modules/News.cpp @@ -12,12 +12,14 @@ namespace Components News::News() { News::Motd = Utils::WebIO("IW4x", "http://localhost/iw4/motd.txt").Get(); - + if (!News::Motd.size()) { News::Motd = "Welcome to ReactIW4x Multiplayer!"; } + Localization::Set("MPUI_CHANGELOG_TEXT", Utils::WebIO("IW4x", "http://localhost/iw4/changelog.txt").Get().data()); + // Patch motd setting Utils::Hook(0x60BF19, News::GetMotd, HOOK_CALL).Install()->Quick(); }