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:
parent
5d0f3608c1
commit
7899805b46
1 changed files with 7 additions and 3 deletions
|
@ -1151,9 +1151,13 @@ qboolean PR_ConsoleCmd(void)
|
|||
extern redirect_t sv_redirected;
|
||||
#ifdef Q2SERVER
|
||||
if (ge)
|
||||
{ //server command
|
||||
if (!strcmp(Cmd_Argv(0), "sv"))
|
||||
{
|
||||
ge->ServerCommand();
|
||||
return true; //the dll will convert in to chat.
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue