From 7899805b46b5d46e53d5cf67044594693fdbd01f Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 27 Aug 2004 00:42:51 +0000 Subject: [PATCH] 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 --- engine/server/pr_cmds.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/engine/server/pr_cmds.c b/engine/server/pr_cmds.c index 8a6fdec7e..894f0098f 100644 --- a/engine/server/pr_cmds.c +++ b/engine/server/pr_cmds.c @@ -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