mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
Group CNetMsg_Sv_CommandInfo
This commit is contained in:
parent
f81828e78e
commit
ac041d7f34
|
@ -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", []),
|
||||
]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue