mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 22:17:17 +02:00
Fix bug in rpsystem.CmdSay
This commit is contained in:
parent
f89b4857ae
commit
23d87c297a
1 changed files with 3 additions and 3 deletions
|
|
@ -819,10 +819,10 @@ class CmdSay(RPCommand): # replaces standard say
|
|||
# Feedback for the object doing the talking.
|
||||
emit_string = '{name} says, "{speech}|n"'
|
||||
for target in caller.location.contents:
|
||||
if target == self:
|
||||
target.msg(emit_string.format(name=self.key, speech=speech))
|
||||
if target == caller:
|
||||
target.msg(emit_string.format(name=caller.key, speech=speech))
|
||||
else:
|
||||
target.msg(emit_string.format(name=self.get_display_name(target), speech=speech))
|
||||
target.msg(emit_string.format(name=caller.get_display_name(target), speech=speech))
|
||||
|
||||
|
||||
class CmdSdesc(RPCommand): # set/look at own sdesc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue