Moves the `mail.get_setting(name, "mute_list")` call out of the message loop. Previously, this is called repeated, causing disastrous lag when using mail with beerchat.
* Check if candidate uuid does not already exist before returning it
* Use get_keys() to iterate through entries
Else it can't be ran with mtt
* Do not give an initial value to candidate_uuid
Triggers luacheck because the blank value is unused. Just give it nil value.
* Add repairing storage script in migrate.lua
* Remove goto statements
Due to uncompatibility with LuaJIT
* Optimize functions
* Merge duplicated functions between migrate.lua and util/uuid.lua
* Mark repair has been done by incremeting version to 3.1
* Remove checking all UUIDs for generating new one
The risk is ridiculous compared to the performance lost, even for several millions of messages.
* Revert util/uuid.lua changes to master
* Rename repair_box() to fix_duplicate_uuids()
* Optimize settings layout
* Optimize about layout
* Use codes for contributors list instead of overflowing texts
* Integrate version id in its translation string
Using @1 within the string
Co-authored-by: y5nw <37980625+y5nw@users.noreply.github.com>
* Use contributions labels instead of code
* Fix formspec syntax error
Missing ]
* Implement grouping by contribution type (#142)
* Implement grouping by contribution type
* minor
---------
Co-authored-by: y5nw <37980625+y5nw@users.noreply.github.com>
* Implement non-player recipients
* Add API callback specifically for players receiving mail
* Exclude sender from (mailing list) recipients
* Complement test
* Fixup typos in complemented test
* Expand aliases at toplevel if the current expansion is at toplevel
This should allow players to send mail to their own aliases
* Also test on_(player_)receive callbacks
* Fix oversight in test case
* Add support for shared settings
* Optimize stored setting value getting
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
* Avoid false for default transfer value
In set_setting, to eventually transfer to another mod. Suggested by S-S-X in #127
---------
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>