Browse Source

Disabled semicolon sanitization in commands

This will enable use of the semicolon character in chat. We don't need to sanitize it out for Urban Terror because the QVM already rejects semicolons when calling a vote.
urt
Anthony Nguyen 7 years ago
committed by BidyBiddle
parent
commit
596b587ba3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/qcommon/cmd.c

+ 1
- 1
code/qcommon/cmd.c View File

@ -520,7 +520,7 @@ void Cmd_Args_Sanitize(void)
if(strlen(c) > MAX_CVAR_VALUE_STRING - 1)
c[MAX_CVAR_VALUE_STRING - 1] = '\0';
while ((c = strpbrk(c, "\n\r;"))) {
while ((c = strpbrk(c, "\n\r"))) {
*c = ' ';
++c;
}


Loading…
Cancel
Save