From d628214600d9faa21b6dc64b7a99ed043646e00b Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 29 Oct 2007 11:39:13 +0000 Subject: [PATCH] Fixed qtv so servers won't strip $\ any more. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2769 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- fteqtv/qw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fteqtv/qw.c b/fteqtv/qw.c index 80723bb6d..a887efe57 100644 --- a/fteqtv/qw.c +++ b/fteqtv/qw.c @@ -3100,7 +3100,7 @@ void QTV_Say(cluster_t *cluster, sv_t *qtv, viewer_t *v, char *message, qboolean { //this is execed on the 'active' server if (qtv && (qtv->controller == v && !qtv->proxyisselected)) - SendClientCommand(qtv, "say %s", message); + SendClientCommand(qtv, "say \"%s\"", message); else QTV_SayCommand(cluster, qtv, v, message+6); return; @@ -3112,7 +3112,7 @@ void QTV_Say(cluster_t *cluster, sv_t *qtv, viewer_t *v, char *message, qboolean else { if (qtv && (qtv->controller == v && qtv->serverisproxy)) - SendClientCommand(qtv, "say %s", message); + SendClientCommand(qtv, "say \"%s\"", message); else QTV_SayCommand(cluster, qtv, v, message+1); return; @@ -3129,7 +3129,7 @@ void QTV_Say(cluster_t *cluster, sv_t *qtv, viewer_t *v, char *message, qboolean { if (qtv->controller == v || !*v->name) { - SendClientCommand(qtv, "say %s", message); + SendClientCommand(qtv, "say \"%s\"", message); if (cluster->notalking) return; @@ -3138,7 +3138,7 @@ void QTV_Say(cluster_t *cluster, sv_t *qtv, viewer_t *v, char *message, qboolean { if (cluster->notalking) return; - SendClientCommand(qtv, "say [%s]: %s", v->name, message); + SendClientCommand(qtv, "say \"[%s]: %s\"", v->name, message); } //FIXME: we ought to broadcast this to everyone not watching that qtv. @@ -3155,7 +3155,7 @@ void QTV_Say(cluster_t *cluster, sv_t *qtv, viewer_t *v, char *message, qboolean // If the currect viewer is the player, pass on the say_team if (qtv && qtv->controller == v) { - SendClientCommand(qtv, "say_team %s", message); + SendClientCommand(qtv, "say_team \"%s\"", message); return; }