mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Actually display the reason
This commit is contained in:
parent
c1a7c30f0f
commit
22c21f73ae
|
@ -409,7 +409,9 @@ void CServer::SetClientName(int ClientID, const char *pName)
|
|||
{
|
||||
if(m_aClients[ClientID].m_State == CClient::STATE_READY)
|
||||
{
|
||||
Kick(ClientID, "Kicked (your name is banned)");
|
||||
char aBuf[256];
|
||||
str_format(aBuf, sizeof(aBuf), "Kicked (%s)", pBanned->m_aReason);
|
||||
Kick(ClientID, aBuf);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue