mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
You can't invite someone to team on solo server...
This commit is contained in:
parent
f2232b8026
commit
f57f1d0d17
|
@ -768,6 +768,13 @@ void CGameContext::ConInviteTeam(IConsole::IResult *pResult, void *pUserData)
|
|||
CGameControllerDDRace *pController = (CGameControllerDDRace *)pSelf->m_pController;
|
||||
const char *pName = pResult->GetString(0);
|
||||
|
||||
if(g_Config.m_SvTeam == 0 || g_Config.m_SvTeam == 3)
|
||||
{
|
||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "join",
|
||||
"Admin has disabled teams");
|
||||
return;
|
||||
}
|
||||
|
||||
if(!g_Config.m_SvInvite)
|
||||
{
|
||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "invite", "Admin has diabled invites");
|
||||
|
|
Loading…
Reference in a new issue