From 6133280154ab5dd509c49506e305d6b65cf3b4e3 Mon Sep 17 00:00:00 2001 From: BlauFeuer Date: Thu, 30 Mar 2017 01:27:34 -0400 Subject: [PATCH] Explict bool return for move_to, typo fix --- evennia/objects/objects.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/evennia/objects/objects.py b/evennia/objects/objects.py index 90c5cf847..4a56df1ea 100644 --- a/evennia/objects/objects.py +++ b/evennia/objects/objects.py @@ -551,7 +551,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)): """ Emits a message to all objects inside this object. - Argsu: + Args: text (str or tuple): Message to send. If a tuple, this should be on the valid OOB outmessage form `(message, {kwargs})`, where kwargs are optional data passed to the `text` @@ -611,7 +611,6 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)): outmessage = inmessage.format(**substitutions) else: outmessage = inmessage - obj.msg(text=(outmessage, outkwargs), from_obj=from_obj, **kwargs) def move_to(self, destination, quiet=False, @@ -673,7 +672,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)): self.location = None return True emit_to_obj.msg(_("The destination doesn't exist.")) - return + return False if destination.destination and use_destination: # traverse exits destination = destination.destination @@ -682,7 +681,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)): if move_hooks: try: if not self.at_before_move(destination): - return + return False except Exception as err: logerr(errtxt % "at_before_move()", err) return False