From 809bc887077c13694c4695175519c996a4f22579 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 17 Nov 2004 18:02:19 +0000 Subject: [PATCH] support for /me git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@456 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/zqtp.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/engine/client/zqtp.c b/engine/client/zqtp.c index 09f0e6d78..c0d6474a4 100644 --- a/engine/client/zqtp.c +++ b/engine/client/zqtp.c @@ -2567,7 +2567,7 @@ void TP_Init (void) -static void CL_Say (qboolean team) +static void CL_Say (qboolean team, char *extra) { extern cvar_t cl_fakename; char text[1024], sendtext[1024], *s; @@ -2606,6 +2606,8 @@ static void CL_Say (qboolean team) if (sendtext[0] < 32) SZ_Print (&cls.netchan.message, "\""); // add quotes so that old servers parse the message correctly + if (extra) + SZ_Print (&cls.netchan.message, extra); SZ_Print (&cls.netchan.message, sendtext); if (sendtext[0] < 32) @@ -2615,12 +2617,17 @@ static void CL_Say (qboolean team) void CL_Say_f (void) { - CL_Say (false); + CL_Say (false, NULL); +} + +void CL_SayMe_f (void) +{ + CL_Say (false, "/me "); } void CL_SayTeam_f (void) { - CL_Say (true); + CL_Say (true, NULL); } #endif