[fix] The @desc command was erroneously still named @setdesc, this was not the intention. Relates to #1450.
This commit is contained in:
parent
b3c6e9d2cc
commit
0ba913332a
1 changed files with 4 additions and 4 deletions
|
|
@ -543,7 +543,7 @@ class CmdDesc(COMMAND_DEFAULT_CLASS):
|
|||
describe an object or the current room.
|
||||
|
||||
Usage:
|
||||
@setdesc [<obj> =] <description>
|
||||
@desc [<obj> =] <description>
|
||||
|
||||
Switches:
|
||||
edit - Open up a line editor for more advanced editing.
|
||||
|
|
@ -551,7 +551,7 @@ class CmdDesc(COMMAND_DEFAULT_CLASS):
|
|||
Sets the "desc" attribute on an object. If an object is not given,
|
||||
describe the current room.
|
||||
"""
|
||||
key = "@setdesc"
|
||||
key = "@desc"
|
||||
aliases = "@describe"
|
||||
locks = "cmd:perm(desc) or perm(Builder)"
|
||||
help_category = "Building"
|
||||
|
|
@ -706,10 +706,10 @@ class CmdDestroy(COMMAND_DEFAULT_CLASS):
|
|||
else:
|
||||
confirm += ", ".join(["#{}".format(obj.id) for obj in objs])
|
||||
confirm += " [yes]/no?" if self.default_confirm == 'yes' else " yes/[no]"
|
||||
answer = yield(confirm)
|
||||
answer = self.default_confirm if answer == '' else answer
|
||||
answer = ""
|
||||
while answer.strip().lower() not in ("y", "yes", "n", "no"):
|
||||
answer = yield(confirm)
|
||||
answer = self.default_confirm if answer == '' else answer
|
||||
|
||||
if answer.strip().lower() in ("n", "no"):
|
||||
caller.msg("Cancelled: no object was destroyed.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue