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:
parent
cd5623a657
commit
86a44ab84d
3 changed files with 4 additions and 14 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class DefaultCmdSet(CmdSet):
|
|||
self.add(building.CmdTypeclass())
|
||||
self.add(building.CmdLock())
|
||||
self.add(building.CmdScript())
|
||||
self.add(building.CmdHome())
|
||||
self.add(building.CmdSetHome())
|
||||
|
||||
# Batchprocessor commands
|
||||
self.add(batchprocess.CmdBatchCommands())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue