From 788e0359aa0a3c6eec0238b828ee7d24c83e7a0c Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 4 Mar 2007 13:32:56 +0100 Subject: [PATCH] double leading slash escapes a command For example //foo is taken as literal "/foo". --- client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.c b/client.c index 1b48a8e..0974c22 100644 --- a/client.c +++ b/client.c @@ -362,8 +362,11 @@ void OneGame(void) void handle_str(char *str) { if (chatText[0] == '/') { + if (chatText[1] != '/') { handle_cmdstr(chatText + 1); return; + } + memmove(chatText, chatText + 1, strlen(chatText)); } Message("<\\%d%s\\7> %s", -- 2.30.0