Fixed deletion of aliases. Resolves #490.
This commit is contained in:
parent
8046679980
commit
55a3be0e83
1 changed files with 5 additions and 3 deletions
|
|
@ -94,11 +94,13 @@ class CmdSetObjAlias(MuxCommand):
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@alias <obj> [= [alias[,alias,alias,...]]]
|
@alias <obj> [= [alias[,alias,alias,...]]]
|
||||||
|
@alias <obj> =
|
||||||
|
|
||||||
Assigns aliases to an object so it can be referenced by more
|
Assigns aliases to an object so it can be referenced by more
|
||||||
than one name. Assign empty to remove all aliases from object.
|
than one name. Assign empty to remove all aliases from object.
|
||||||
Observe that this is not the same thing as aliases
|
|
||||||
created with the 'alias' command! Aliases set with @alias are
|
Observe that this is not the same thing as personal aliases
|
||||||
|
created with the 'nick' command! Aliases set with @alias are
|
||||||
changing the object in question, making those aliases usable
|
changing the object in question, making those aliases usable
|
||||||
by everyone.
|
by everyone.
|
||||||
"""
|
"""
|
||||||
|
|
@ -141,7 +143,7 @@ class CmdSetObjAlias(MuxCommand):
|
||||||
old_aliases = obj.aliases.all()
|
old_aliases = obj.aliases.all()
|
||||||
if old_aliases:
|
if old_aliases:
|
||||||
caller.msg("Cleared aliases from %s: %s" % (obj.key, ", ".join(old_aliases)))
|
caller.msg("Cleared aliases from %s: %s" % (obj.key, ", ".join(old_aliases)))
|
||||||
obj.dbobj.db_aliases.clear()
|
obj.dbobj.aliases.clear()
|
||||||
else:
|
else:
|
||||||
caller.msg("No aliases to clear.")
|
caller.msg("No aliases to clear.")
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue