mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-12 17:32:21 -04:00
Add mute list setting
Add sharing between mute_list and beerchat Add check for mute list
This commit is contained in:
parent
e45d56439f
commit
103c4ae441
5 changed files with 69 additions and 3 deletions
|
@ -441,8 +441,11 @@ function mail.get_setting(playername, key)
|
|||
or {entry.settings[key]})[1]
|
||||
|
||||
if mail.settings[key].sync then -- in case this setting is shared with another mod
|
||||
value = mail.settings[key].sync(playername, key) -- get new value
|
||||
mail.set_setting(playername, key, value, false) -- update the setting in mail storage and don't transfer it again
|
||||
local sync_value = mail.settings[key].sync(playername) -- get new value
|
||||
if sync_value then
|
||||
value = sync_value
|
||||
mail.set_setting(playername, key, value, true) -- update the setting in mail storage and don't transfer it again
|
||||
end
|
||||
end
|
||||
|
||||
return value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue