From 33df59ffa156350bd25ab240ac3686cc9b95bceb Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 22 Jan 2017 11:28:37 +0100 Subject: [PATCH] [Menus] Only display the server motd if we are connecting to that server --- src/Components/Modules/Menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Modules/Menus.cpp b/src/Components/Modules/Menus.cpp index 63ec932f..1125a11f 100644 --- a/src/Components/Modules/Menus.cpp +++ b/src/Components/Modules/Menus.cpp @@ -627,7 +627,7 @@ namespace Components // Use the connect menu open call to update server motds Utils::Hook(0x428E48, []() { - if (!Party::GetMotd().empty()) + if (!Party::GetMotd().empty() && Party::Target() == *Game::connectedHost) { Dvar::Var("didyouknow").set(Party::GetMotd()); }