From 55a3be0e83e9a8cbf00edc72d8c5a055e4c181fc Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 6 Apr 2014 10:28:14 +0200 Subject: [PATCH] Fixed deletion of aliases. Resolves #490. --- src/commands/default/building.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/commands/default/building.py b/src/commands/default/building.py index 2da2e3fffe..d38e3559f8 100644 --- a/src/commands/default/building.py +++ b/src/commands/default/building.py @@ -94,11 +94,13 @@ class CmdSetObjAlias(MuxCommand): Usage: @alias [= [alias[,alias,alias,...]]] + @alias = Assigns aliases to an object so it can be referenced by more 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 by everyone. """ @@ -141,7 +143,7 @@ class CmdSetObjAlias(MuxCommand): old_aliases = obj.aliases.all() if old_aliases: caller.msg("Cleared aliases from %s: %s" % (obj.key, ", ".join(old_aliases))) - obj.dbobj.db_aliases.clear() + obj.dbobj.aliases.clear() else: caller.msg("No aliases to clear.") return