1

Topic: [BUG] Console commands doesn't allow slashes

For example, if you try this command:

bind "mouse1" "+fire"

You'll see error.
This error can be solved that way:

*dst = *str;
                    dst++;
                    str++;
                }
               
                /* write null termination */
                if (*dst) str++;
                *dst = 0;
            }
            else
            {
                result->args[result->num_args++] = str;

2

Re: [BUG] Console commands doesn't allow slashes

Or by using the bind function the right way

bind mouse1 "+fire"

Quotes are only used for commands, not for the key.

|ZPote| buffer[]'s posterous

3

Re: [BUG] Console commands doesn't allow slashes

It doesn't matter. There were problems, if you wanna make new command with 2+ strings. For example: fastmenu_add "Hi all!" say Hi all!

4 (edited by buffer[] 2009-12-31 16:45:06)

Re: [BUG] Console commands doesn't allow slashes

No -_-

fastmenu_add "Hi all!; say hi all"

as

bind mouse1 "+fire; +hook"
|ZPote| buffer[]'s posterous

5

Re: [BUG] Console commands doesn't allow slashes

No, not "r", but "sr" or "ssr". For example, "fastmenu_add sr". I mean, you cannot use slashes in "s", only in "r". I think it's bug.