1
0
Fork 0
forked from fte/fteqw

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; extern redirect_t sv_redirected;
#ifdef Q2SERVER #ifdef Q2SERVER
if (ge) if (ge)
{ { //server command
ge->ServerCommand(); if (!strcmp(Cmd_Argv(0), "sv"))
return true; //the dll will convert in to chat. {
ge->ServerCommand();
return true;
}
return false;
} }
#endif #endif