Red button commands lacked proper locks, causing non-privileged chars to not have access. Fixed.

This commit is contained in:
Griatch 2011-11-09 09:53:57 +01:00
parent a3e4e44a61
commit f950cd8b94
3 changed files with 14 additions and 7 deletions

View file

@ -49,7 +49,6 @@ def cmdparser(raw_string, cmdset, caller, match_index=None):
matches.extend([create_match(cmdname, raw_string, cmd)
for cmdname in [cmd.key] + cmd.aliases
if cmdname and l_raw_string.startswith(cmdname.lower())])
if not matches:
# no matches found.
if '-' in raw_string: