mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Ensure uniqueness of Msg sender_strings list. Resolves #2127.
This commit is contained in:
parent
050b050d24
commit
08190a7ff4
1 changed files with 3 additions and 2 deletions
|
|
@ -396,7 +396,8 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase):
|
|||
to build senders for the message.
|
||||
sender_strings (list, optional): Name strings of senders. Used for external
|
||||
connections where the sender is not an account or object.
|
||||
When this is defined, external will be assumed.
|
||||
When this is defined, external will be assumed. The list will be
|
||||
filtered so each sender-string only occurs once.
|
||||
keep_log (bool or None, optional): This allows to temporarily change the logging status of
|
||||
this channel message. If `None`, the Channel's `keep_log` Attribute will
|
||||
be used. If `True` or `False`, that logging status will be used for this
|
||||
|
|
@ -428,7 +429,7 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase):
|
|||
if not msgobj:
|
||||
return False
|
||||
msgobj = self.message_transform(
|
||||
msgobj, emit=emit, sender_strings=sender_strings, external=external
|
||||
msgobj, emit=emit, sender_strings=list(set(sender_strings)), external=external
|
||||
)
|
||||
self.distribute_message(msgobj, online=online)
|
||||
self.post_send_message(msgobj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue