mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 16:26:30 +01:00
Changed kwarg to options entry
Due to the set up of sessionhandler.clean_senddata the information is more appropriately stored in options.
This commit is contained in:
parent
6cfbec83f1
commit
375cd7cecb
1 changed files with 5 additions and 3 deletions
|
|
@ -417,7 +417,8 @@ 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(emit_string, exclude=caller, from_obj=caller, type="say")
|
||||
caller.location.msg_contents(emit_string, exclude=caller,
|
||||
from_obj=caller, options={"type": "say"})
|
||||
|
||||
|
||||
class CmdWhisper(COMMAND_DEFAULT_CLASS):
|
||||
|
|
@ -459,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(emit_string, from_obj=caller, type="whisper")
|
||||
receiver.msg(emit_string, from_obj=caller, options={"type": "whisper"})
|
||||
|
||||
|
||||
class CmdPose(COMMAND_DEFAULT_CLASS):
|
||||
|
|
@ -502,7 +503,8 @@ class CmdPose(COMMAND_DEFAULT_CLASS):
|
|||
self.caller.msg(msg)
|
||||
else:
|
||||
msg = "%s%s" % (self.caller.name, self.args)
|
||||
self.caller.location.msg_contents(msg, from_obj=self.caller, type="pose")
|
||||
self.caller.location.msg_contents(msg, from_obj=self.caller,
|
||||
options={"type": "pose"})
|
||||
|
||||
|
||||
class CmdAccess(COMMAND_DEFAULT_CLASS):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue