mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
show sixup in status (#3512)
* show sixup in status * format sixup in status * str_copy
This commit is contained in:
parent
c0cbef731b
commit
46387373d1
|
@ -2732,8 +2732,17 @@ void CServer::ConStatus(IConsole::IResult *pResult, void *pUser)
|
|||
str_format(aAuthStr, sizeof(aAuthStr), " key=%s %s", pThis->m_AuthManager.KeyIdent(pThis->m_aClients[i].m_AuthKey), pAuthStr);
|
||||
}
|
||||
|
||||
str_format(aBuf, sizeof(aBuf), "id=%d addr=<{%s}> name='%s' client=%d secure=%s flags=%d%s%s",
|
||||
i, aAddrStr, pThis->m_aClients[i].m_aName, pThis->m_aClients[i].m_DDNetVersion,
|
||||
char aClientStr[128];
|
||||
if(pThis->m_aClients[i].m_Sixup)
|
||||
{
|
||||
str_copy(aClientStr, "sixup", sizeof(aClientStr));
|
||||
}
|
||||
else
|
||||
{
|
||||
str_format(aClientStr, sizeof(aClientStr), "%d", pThis->m_aClients[i].m_DDNetVersion);
|
||||
}
|
||||
str_format(aBuf, sizeof(aBuf), "id=%d addr=<{%s}> name='%s' client=%s secure=%s flags=%d%s%s",
|
||||
i, aAddrStr, pThis->m_aClients[i].m_aName, aClientStr,
|
||||
pThis->m_NetServer.HasSecurityToken(i) ? "yes" : "no", pThis->m_aClients[i].m_Flags, aDnsblStr, aAuthStr);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue