Added swap alias to the type command. Resolves #718.

This commit is contained in:
Griatch 2015-03-19 19:01:41 +01:00
parent ff9f385123
commit 5ec2030d83

View file

@ -1474,7 +1474,7 @@ class CmdTypeclass(MuxCommand):
""" """
key = "@typeclass" key = "@typeclass"
aliases = "@type, @parent" aliases = ["@type", "@parent", "@swap"]
locks = "cmd:perm(typeclass) or perm(Builders)" locks = "cmd:perm(typeclass) or perm(Builders)"
help_category = "Building" help_category = "Building"
@ -1484,7 +1484,7 @@ class CmdTypeclass(MuxCommand):
caller = self.caller caller = self.caller
if not self.args: if not self.args:
caller.msg("Usage: @type <object> [=<typeclass]") caller.msg("Usage: %s <object> [=<typeclass]" % self.cmdstring)
return return
# get object to swap on # get object to swap on