Extend rcon_restricted_commands to contain more complex patterns:
- Wildcards are supported. A * matches EXACTLY one arg. ? never matches
whitespace. * wildcards match AT LEAST one character.
- Multi-word patterns are supported - they then match EXACTLY the command.
- Single-word non-wildcard patterns still match if the first word of the command matches.
Currently, there is no way to enforce that a command is used ONLY without any args.
Also, wildcard expressions currently NEVER match a command with quotes, as quotes
could subvert the argument restrictions.
Examples:
foo * bar * *
- matches: foo XXX bar XXX XXX
- does not match: foo bar XXX XXX, foo XXX bar XXX XXX XXX, foo XXX bar XXX
foo
- matches: foo, foo XXX, foo XXX XXX
- does not match: foobar
foo bar
- matches: foo bar
- does not match: foo bar baz
foo*bar
- matches: foo42bar, foo1bar
- does not match: foobar, foo bar
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8267
d7cf8633-e32d-0410-b094-
e92efae38249