Add mute list setting

Add sharing between mute_list and beerchat

Add check for mute list
This commit is contained in:
Athozus 2023-12-29 22:51:42 +01:00
parent e45d56439f
commit 103c4ae441
5 changed files with 69 additions and 3 deletions

View file

@ -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