X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;f=mudpy%2Fcommand.py;h=279da788d9c63389b55af720f9bf3dca1ea78fa5;hb=b27c62e7d11d4c221666e7e0241a8ea51902be88;hp=bd473e56c536df17fea3595d17644b3cf7cc534f;hpb=6841e0ca1d916a31178ceab9bb7802f7a055bd52;p=mudpy.git diff --git a/mudpy/command.py b/mudpy/command.py index bd473e5..279da78 100644 --- a/mudpy/command.py +++ b/mudpy/command.py @@ -171,7 +171,7 @@ def help(actor, parameters): description = command.get("description") if not description: description = "(no short description provided)" - if command.get("administrative"): + if command.is_restricted(): output = "$(red)" else: output = "$(grn)" @@ -194,7 +194,7 @@ def help(actor, parameters): if actor.can_run(command): if really_see_also: really_see_also += ", " - if command.get("administrative"): + if command.is_restricted(): really_see_also += "$(red)" else: really_see_also += "$(grn)" @@ -244,7 +244,7 @@ def help(actor, parameters): "description", "(no short description provided)") # administrative command names are in red, others in green - if command.get("administrative"): + if command.is_restricted(): color = "red" else: color = "grn"