From ac041d7f34d9c3b632d69eca42f6dae0e1584339 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Fri, 5 Jan 2024 18:10:24 +0100 Subject: [PATCH] Group `CNetMsg_Sv_CommandInfo` --- datasrc/network.py | 3 +++ src/game/server/gamecontext.cpp | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/datasrc/network.py b/datasrc/network.py index 08739f0e3..033929e51 100644 --- a/datasrc/network.py +++ b/datasrc/network.py @@ -575,4 +575,7 @@ Messages = [ NetMessageEx("Sv_VoteOptionGroupStart", "sv-vote-option-group-start@netmsg.ddnet.org", []), NetMessageEx("Sv_VoteOptionGroupEnd", "sv-vote-option-group-end@netmsg.ddnet.org", []), + + NetMessageEx("Sv_CommandInfoGroupStart", "sv-commandinfo-group-start@netmsg.ddnet.org", []), + NetMessageEx("Sv_CommandInfoGroupEnd", "sv-commandinfo-group-end@netmsg.ddnet.org", []), ] diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 5ee861283..73de580d4 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -1478,6 +1478,10 @@ void CGameContext::OnClientEnter(int ClientID) } } + { + CNetMsg_Sv_CommandInfoGroupStart Msg; + Server()->SendPackMsg(&Msg, MSGFLAG_VITAL | MSGFLAG_NORECORD, ClientID); + } for(const IConsole::CCommandInfo *pCmd = Console()->FirstCommandInfo(IConsole::ACCESS_LEVEL_USER, CFGFLAG_CHAT); pCmd; pCmd = pCmd->NextCommandInfo(IConsole::ACCESS_LEVEL_USER, CFGFLAG_CHAT)) { @@ -1506,6 +1510,10 @@ void CGameContext::OnClientEnter(int ClientID) Server()->SendPackMsg(&Msg, MSGFLAG_VITAL | MSGFLAG_NORECORD, ClientID); } } + { + CNetMsg_Sv_CommandInfoGroupEnd Msg; + Server()->SendPackMsg(&Msg, MSGFLAG_VITAL | MSGFLAG_NORECORD, ClientID); + } { int Empty = -1;