Make command actions implicit
[mudpy.git] / mudpy / misc.py
index 045e6a5..e76b4dd 100644 (file)
@@ -1893,7 +1893,7 @@ def handler_active(user):
         if actor.can_run(command):
             # dereference the relative object path for the requested function
             action = mudpy
-            for component in command.get("action").split("."):
+            for component in command.get("action", command.key).split("."):
                 try:
                     action = getattr(action, component)
                     ran = True