mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-05 22:20:37 -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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue