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;
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue