[Menus] Only display the server motd if we are connecting to that server
This commit is contained in:
parent
3ed205836e
commit
33df59ffa1
@ -627,7 +627,7 @@ namespace Components
|
|||||||
// Use the connect menu open call to update server motds
|
// Use the connect menu open call to update server motds
|
||||||
Utils::Hook(0x428E48, []()
|
Utils::Hook(0x428E48, []()
|
||||||
{
|
{
|
||||||
if (!Party::GetMotd().empty())
|
if (!Party::GetMotd().empty() && Party::Target() == *Game::connectedHost)
|
||||||
{
|
{
|
||||||
Dvar::Var("didyouknow").set(Party::GetMotd());
|
Dvar::Var("didyouknow").set(Party::GetMotd());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user