X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fmisc.py;h=62501d493a733c6623f8df69c9aca311d13c6535;hp=501d5b40498ccc3e2bd0dab25a4a1ffb92352de7;hb=5576b96f9280d8b9598d4b4806a016854b6a1c65;hpb=45b739b13adf159f6c255f0c66d11f0f3161760b diff --git a/mudpy/misc.py b/mudpy/misc.py index 501d5b4..62501d4 100644 --- a/mudpy/misc.py +++ b/mudpy/misc.py @@ -1486,8 +1486,10 @@ def find_command(command_name): command = universe.groups["command"][command_name] else: for candidate in sorted(universe.groups["command"]): - if candidate.startswith(command_name): - # the command matches the start of a command word + if candidate.startswith(command_name) and not universe.groups[ + "command"][candidate].get("administrative"): + # the command matches the start of a command word and is not + # restricted to administrators command = universe.groups["command"][candidate] break return command