git.shiar.nl
/
netris.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
double leading slash escapes a command
[netris.git]
/
client.c
diff --git
a/client.c
b/client.c
index 1b48a8e100ba87599d33b84b42de7ca0c7888210..0974c222aa6de2c3ed171e71093eccaf3813619a 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-362,8
+362,11
@@
void OneGame(void)
void handle_str(char *str)
{
if (chatText[0] == '/') {
void handle_str(char *str)
{
if (chatText[0] == '/') {
+ if (chatText[1] != '/') {
handle_cmdstr(chatText + 1);
return;
handle_cmdstr(chatText + 1);
return;
+ }
+ memmove(chatText, chatText + 1, strlen(chatText));
}
Message("<\\%d%s\\7> %s",
}
Message("<\\%d%s\\7> %s",