From 4bbba7615509945f90c61094f7b503ec5893cc76 Mon Sep 17 00:00:00 2001 From: CloudKeeper1 Date: Tue, 28 Mar 2017 21:21:33 +1100 Subject: [PATCH] msg_contents doesn't take the text keyword in arguments. Adjusted code so it works now... --- evennia/commands/default/general.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evennia/commands/default/general.py b/evennia/commands/default/general.py index e6f0a5f7ed..f6323fda13 100644 --- a/evennia/commands/default/general.py +++ b/evennia/commands/default/general.py @@ -417,7 +417,7 @@ class CmdSay(COMMAND_DEFAULT_CLASS): # Build the string to emit to neighbors. emit_string = '%s says, "%s|n"' % (caller.name, speech) - caller.location.msg_contents(text=(emit_string, {"type": "say"}), + caller.location.msg_contents((emit_string, {"type": "say"}), exclude=caller, from_obj=caller) @@ -460,7 +460,7 @@ class CmdWhisper(COMMAND_DEFAULT_CLASS): # Build the string to emit to receiver. emit_string = '%s whispers, "%s|n"' % (caller.name, speech) - receiver.msg(text=(emit_string, {"type": "Whisper"}), from_obj=caller) + receiver.msg((emit_string, {"type": "Whisper"}), from_obj=caller) class CmdPose(COMMAND_DEFAULT_CLASS): @@ -503,7 +503,7 @@ class CmdPose(COMMAND_DEFAULT_CLASS): self.caller.msg(msg) else: msg = "%s%s" % (self.caller.name, self.args) - self.caller.location.msg_contents(text=(msg, {"type": "pose"}), + self.caller.location.msg_contents((msg, {"type": "pose"}), from_obj=self.caller)