X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fcommand.py;h=95fb793d3f7e25fcf92b36b81ea95e1756658002;hp=ebd9036983b8178a0f3d9a7ef71840b811446c46;hb=de65a162dc402df0e052c9a6e79a533a00036902;hpb=b64bdabe02e5d30113df5052050cfb9b62683a74 diff --git a/mudpy/command.py b/mudpy/command.py index ebd9036..95fb793 100644 --- a/mudpy/command.py +++ b/mudpy/command.py @@ -148,10 +148,7 @@ def help(actor, parameters): if parameters and actor.owner: # is the command word one for which we have data? - if parameters in actor.universe.groups["command"]: - command = actor.universe.groups["command"][parameters] - else: - command = None + command = mudpy.misc.find_command(parameters) # only for allowed commands if actor.can_run(command): @@ -237,6 +234,10 @@ def move(actor, parameters): def preferences(actor, parameters): """List, view and change actor preferences.""" + + # Escape replacement macros in preferences + parameters = mudpy.misc.escape_macros(parameters) + message = "" arguments = parameters.split() allowed_prefs = set()