From: Mischa POSLAWSKY Date: Sun, 4 Mar 2007 12:32:56 +0000 (+0100) Subject: double leading slash escapes a command X-Git-Url: http://git.shiar.nl/netris.git/commitdiff_plain/788e0359aa0a3c6eec0238b828ee7d24c83e7a0c double leading slash escapes a command For example //foo is taken as literal "/foo". --- 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",