[Menus] Only display the server motd if we are connecting to that server

This commit is contained in:
momo5502 2017-01-22 11:28:37 +01:00
parent 3ed205836e
commit 33df59ffa1

View File

@ -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());
}