Q2 servers were stealing all chat text. 'sv ' is the only prefix allowed to get q2 commands executing.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@59 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-08-27 00:42:51 +00:00
parent 5d0f3608c1
commit 7899805b46

View file

@ -1151,9 +1151,13 @@ qboolean PR_ConsoleCmd(void)
extern redirect_t sv_redirected;
#ifdef Q2SERVER
if (ge)
{
ge->ServerCommand();
return true; //the dll will convert in to chat.
{ //server command
if (!strcmp(Cmd_Argv(0), "sv"))
{
ge->ServerCommand();
return true;
}
return false;
}
#endif