Strip extra separators in show element command
[mudpy.git] / lib / mudpy / misc.py
index b3f2e25..1dc6b3d 100644 (file)
@@ -2183,8 +2183,8 @@ def command_show(actor, parameters):
     elif arguments[0] == "element":
         if len(arguments) != 2:
             message = "You must specify one element."
-        elif arguments[1] in universe.contents:
-            element = universe.contents[arguments[1]]
+        elif arguments[1].strip(".") in universe.contents:
+            element = universe.contents[arguments[1].strip(".")]
             message = ("These are the properties of the \"" + arguments[1]
                        + "\" element (in \"" + element.origin.filename
                        + "\"):$(eol)")