diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLLobbyMenu.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLLobbyMenu.cpp index ef2d1c63be6..4d5799b07c3 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLLobbyMenu.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLLobbyMenu.cpp @@ -130,10 +130,19 @@ static Int initialGadgetDelay = 2; static Bool justEntered = FALSE; static int64_t s_lobbyLastChatTimeMs = 0; -static const int64_t S_LOBBY_CHAT_INTERVAL_MS = 8000; // how long to wait before we allow sending the next message +static const int64_t S_LOBBY_CHAT_INTERVAL_MS = 5000; // how long to wait before we allow sending the next message static bool LobbyChatSlowmodeAllowsSend() { + auto* auth = NGMP_OnlineServicesManager::GetInterface(); + auto* rooms = NGMP_OnlineServicesManager::GetInterface(); + if (auth && rooms) + { + auto* me = rooms->GetRoomMemberFromID(auth->GetUserID()); + if (me && me->m_bIsAdmin) + return true; + } + using namespace std::chrono; int64_t nowMs =