Remove hacky security against rcon spoofing because we have a better one now (client-side)

This commit is contained in:
def 2016-02-22 19:56:30 +01:00
parent 91df0a2af0
commit a93e7710e1

View file

@ -443,14 +443,6 @@ void CClient::Rcon(const char *pCmd)
{
CServerInfo Info;
GetServerInfo(&Info);
if(RconAuthed() && IsDDNet(&Info))
{ // Against IP spoofing on DDNet servers
CMsgPacker Msg(NETMSG_RCON_AUTH);
Msg.AddString("", 32);
Msg.AddString(m_RconPassword, 32);
Msg.AddInt(1);
SendMsgEx(&Msg, MSGFLAG_VITAL);
}
CMsgPacker Msg(NETMSG_RCON_CMD);
Msg.AddString(pCmd, 256);