save writes a user's inbox to the plugin data store.
(userId int, inbox Inbox)
| 136 | |
| 137 | // save writes a user's inbox to the plugin data store. |
| 138 | func (m *MudmailModule) save(userId int, inbox Inbox) { |
| 139 | m.plug.WriteStruct(inboxKey(userId), inbox) |
| 140 | } |
| 141 | |
| 142 | // onSave persists all currently loaded inboxes. |
| 143 | func (m *MudmailModule) onSave() { |
no test coverage detected