From e82799fb13ad1424081559ab5d65d52ab8046e42 Mon Sep 17 00:00:00 2001 From: Tehom Date: Tue, 13 Dec 2016 20:20:51 -0500 Subject: [PATCH] set the from_obj for CmdSay and CmdPose, so they can be used properly --- evennia/commands/default/general.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/commands/default/general.py b/evennia/commands/default/general.py index f4603d79a..ced63cc3d 100644 --- a/evennia/commands/default/general.py +++ b/evennia/commands/default/general.py @@ -417,7 +417,7 @@ class CmdSay(COMMAND_DEFAULT_CLASS): emit_string = '%s says, "%s{n"' % (caller.name, speech) caller.location.msg_contents(emit_string, - exclude=caller) + exclude=caller, from_obj=caller) class CmdPose(COMMAND_DEFAULT_CLASS): @@ -460,7 +460,7 @@ class CmdPose(COMMAND_DEFAULT_CLASS): self.caller.msg(msg) else: msg = "%s%s" % (self.caller.name, self.args) - self.caller.location.msg_contents(msg) + self.caller.location.msg_contents(msg, from_obj=self.caller) class CmdAccess(COMMAND_DEFAULT_CLASS):