mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
OBS: run migrations! This changes the Msg model to work with ManyToManyFields rather than with custom string representations for storing multiple receivers or channels. It also expands the Msg object with a "title" field and various filter options. This should make it easier to implement mail-like operations using the comms system.
This commit is contained in:
parent
7995c91eee
commit
dcc7f29a91
8 changed files with 656 additions and 381 deletions
|
|
@ -85,8 +85,9 @@ class ChannelCommand(command.Command):
|
|||
except AttributeError:
|
||||
# this could happen if a player is calling directly.
|
||||
sender = caller.dbobj
|
||||
msgobj = Msg(db_sender=sender, db_message=msg)
|
||||
msgobj = Msg(db_message=msg)
|
||||
msgobj.save()
|
||||
msgobj.senders = sender
|
||||
msgobj.channels = channel
|
||||
# send new message object to channel
|
||||
channel.msg(msgobj, from_obj=sender)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue