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

@ -103,6 +103,9 @@ function mail.show_inbox(name, sortfieldindex, sortdirection, filter)
if message.spam then
table.insert(displayed_color, "warning")
end
if table.indexof(mail.get_setting(name, "mute_list"), message.from) >= 1 then
table.insert(displayed_color, "muted")
end
formspec[#formspec + 1] = "," .. mail.get_color(displayed_color)
formspec[#formspec + 1] = ","
formspec[#formspec + 1] = minetest.formspec_escape(message.from)