From 4639ed8f7e00f6c18879116f9bcf6935c5e194eb Mon Sep 17 00:00:00 2001 From: Tehom Date: Wed, 21 Sep 2016 01:02:51 -0400 Subject: [PATCH] Resolves traceback error when object is moved to a room rather than a player from None location. --- evennia/objects/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/objects/objects.py b/evennia/objects/objects.py index f2d21ca6e6..8d55abe1e1 100644 --- a/evennia/objects/objects.py +++ b/evennia/objects/objects.py @@ -1186,13 +1186,13 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)): self.location.msg(string) return - string = "%s arrives to %s from %s." + string = "%s arrives to %s%s." location = self.location for obj in self.location.contents: if obj != self: obj.msg(string % (self.get_display_name(obj), location.get_display_name(obj) if location else "nowhere", - source_location.get_display_name(obj))) + " from %s" % source_location.get_display_name(obj) if source_location else "")) def at_after_move(self, source_location): """