]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.c
command parsing: make "bind" and "in_bind" have the same parsing exception as "alias...
[xonotic/darkplaces.git] / cmd.c
diff --git a/cmd.c b/cmd.c
index dbaf45690128c9fa0cc94062065678e603905fb1..d94857655984e47d91cd23c2fe2c0b295c13edff 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -186,7 +186,13 @@ void Cbuf_Execute (void)
 
 // execute the command line
                firstchar = line + strspn(line, " \t");
-               if(strncmp(firstchar, "alias", 5) || (firstchar[5] != ' ' && firstchar[5] != '\t'))
+               if(
+                       (strncmp(firstchar, "alias", 5) || (firstchar[5] != ' ' && firstchar[5] != '\t'))
+                       &&
+                       (strncmp(firstchar, "bind", 4) || (firstchar[4] != ' ' && firstchar[4] != '\t'))
+                       &&
+                       (strncmp(firstchar, "in_bind", 7) || (firstchar[7] != ' ' && firstchar[7] != '\t'))
+               )
                {
                        Cmd_PreprocessString( line, preprocessed, sizeof(preprocessed), NULL );
                        Cmd_ExecuteString (preprocessed, src_command);