Made sure the cmd-classes for 'home' and '@home' were differently named, which messed up their appearance in ev. Resolves Issue 285.

This commit is contained in:
Griatch 2012-10-14 16:03:02 +02:00
parent cd5623a657
commit 86a44ab84d
3 changed files with 4 additions and 14 deletions

View file

@ -14,7 +14,7 @@ from src.commands.cmdhandler import get_and_merge_cmdsets
__all__ = ("ObjManipCommand", "CmdSetObjAlias", "CmdCopy",
"CmdCpAttr", "CmdMvAttr", "CmdCreate", "CmdDebug",
"CmdDesc", "CmdDestroy", "CmdDig", "CmdTunnel", "CmdLink",
"CmdUnLink", "CmdHome", "CmdListCmdSets", "CmdName",
"CmdUnLink", "CmdSetHome", "CmdListCmdSets", "CmdName",
"CmdOpen", "CmdSetAttribute", "CmdTypeclass", "CmdWipe",
"CmdLock", "CmdExamine", "CmdFind", "CmdTeleport",
"CmdScript")
@ -900,7 +900,7 @@ class CmdUnLink(CmdLink):
# call the @link functionality
super(CmdUnLink, self).func()
class CmdHome(CmdLink):
class CmdSetHome(CmdLink):
"""
@home - control an object's home location
@ -916,6 +916,7 @@ class CmdHome(CmdLink):
"""
key = "@home"
aliases = "@sethome"
locks = "cmd:perm(@home) or perm(Builders)"
help_category = "Building"