mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-05 06:00:29 -04:00
Fix maillists issues (#49)
* Fix maillist deletion * Fix duplicating of maillist while changing its name * Permit sub-lists * Fix messages with no mailing lists
This commit is contained in:
parent
2f996b59cd
commit
418cda1adc
3 changed files with 25 additions and 23 deletions
|
@ -90,7 +90,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
mail.selected_idxs.maillists[name] = k
|
||||
break
|
||||
elseif k == mail.selected_idxs.maillists[name] then
|
||||
mail.delete_maillist(maillists[mail.selected_idxs.maillists[name]].name)
|
||||
mail.delete_maillist(name, maillists[mail.selected_idxs.maillists[name]].name)
|
||||
mail.selected_idxs.maillists[name] = nil
|
||||
found = true
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue