Commit Graph

202 Commits

Author SHA1 Message Date
Athozus
1c5e4b6cd6
Harmonize function names with snake case 2024-03-22 22:43:26 +01:00
Athozus
6f7ccc77bd
Add patch files to gitignore 2024-03-22 22:06:31 +01:00
Athozus
163467379f
Fix nil player list concatenating 2024-03-22 22:05:48 +01:00
y5nw
2694ffa2dc
Cleanly handle player mailling lists (#140)
* Fix server hanging for certain recipient names

* Disallow recursive maillist inclusion

* Disallow sending to empty recipient

* Complement testcases
2024-03-22 21:59:04 +01:00
y5nw
851fa9f12a
Update zh translations (#139)
* Update zh translations

* zh_TW: 命令 -> 指令
2024-02-18 19:06:18 +01:00
Athozus
1eb3b7668d
Correct dev version 2024-02-03 16:13:54 +01:00
Athozus
ea7773730e
Minor improvements and fixes to message view layout 2024-02-03 01:07:25 +01:00
Athozus
0e06718a51
Update translations 2024-02-03 01:03:00 +01:00
Athozus
ae238ba143
Add mod_translation_updater.py to gitignore 2024-02-03 00:58:32 +01:00
y5nw
570cf788ec
Implement non-player recipients (#131)
* Implement non-player recipients

* Add API callback specifically for players receiving mail

* Exclude sender from (mailing list) recipients

* Complement test

* Fixup typos in complemented test

* Expand aliases at toplevel if the current expansion is at toplevel

This should allow players to send mail to their own aliases

* Also test on_(player_)receive callbacks

* Fix oversight in test case
2024-02-01 20:46:26 +01:00
Singularis
fcca0b7511
fix for bugs #135 and #136 (#137)
* fix for bugs #135 and #136

* Fix indentation in ui/compose.lua

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

---------

Co-authored-by: Athozus <athozus@gmail.com>
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2024-02-01 14:33:33 +01:00
Niklp
c5fd218415 Fix luacheck
Fix luacheck warnings in spam.lua

Fix global variable initialization (was needed only locally)

Add beerchat to luacheck
2024-02-01 14:23:03 +01:00
Athozus
103c4ae441 Add mute list setting
Add sharing between mute_list and beerchat

Add check for mute list
2024-02-01 14:23:03 +01:00
Athozus
e45d56439f Add list setting type 2024-02-01 14:23:03 +01:00
Athozus
cd9e9ec8e1 Add (Un)mark spam buttons
Resize boxes view, and modify the layout of message view
2024-02-01 14:23:03 +01:00
Athozus
48fc8470f5 Add storage function to (un)mark message as spams 2024-02-01 14:23:03 +01:00
Athozus
bfe0ef2711 Initial implementation of spam check
It checks during the sends if there are spam warnings then give to the message an attribute spam=true (only for receivers)
2024-02-01 14:23:03 +01:00
Athozus
75510d2551 Add checks utils 2024-02-01 14:23:03 +01:00
Athozus
83842a8861 Add beerchat in optional depends 2024-02-01 14:23:03 +01:00
Athozus
aab7acf2b5 Add warning color
Based on Minetest main menu orange color
2024-02-01 14:23:03 +01:00
Athozus
46012a2b28
Add support for shared settings (#127)
* Add support for shared settings

* Optimize stored setting value getting

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

* Avoid false for default transfer value

In set_setting, to eventually transfer to another mod. Suggested by S-S-X in #127

---------

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2024-02-01 10:18:55 +01:00
BuckarooBanzay
721d882c26 evict cached storage entries periodically
fixes synchronization issues if other applications write directly to the mail-entries in the mod-storage
2024-01-13 18:18:16 +01:00
aBlueShadow
94f37da092 add sfinv_buttons compatibility 2024-01-13 16:28:14 +01:00
Athozus
3eafeb4cf8
Remove selected_idxs for settings after saving 2024-01-01 19:19:51 +01:00
Niklp
8d80e4c709 Update translation templates 2023-12-30 17:26:14 +01:00
Athozus
720315a22c
Move settings-related to util/settings.lua 2023-12-27 18:07:23 +01:00
Athozus
77de24e467
Use interleaved style (#124)
* Generate interleaved style when replying/forwarding a message (#120)

* Simplify interleaving function

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

---------

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2023-12-09 00:01:21 +01:00
Athozus
3bad371353
Add colors utilities (#121)
* Add colors utilities

Local function get_base_color(), conversions hex <=> rgb, rgb color mixer, and global function get_color()

* Round numbers to avoid eventual float in string.format

* Simplify inbox/outbox mixing of color

Use a single if statement for each property and concatenate to displayed_color then execute mail.get_color(displayed_color) instead of making many combined if statements

* Convert 3-chars hex colors to 6-chars hex colors

Could break the code, the hex convert to rgb always run on 6-chars

* Rework color utility using tables

Instead of one-letter symbols, it now supports tables of identifiers or single strings
2023-12-06 10:11:12 +01:00
Athozus
802f9f727b
Add labels for index-type settings 2023-12-05 22:46:52 +01:00
Muhammad Rifqi Priyo Susanto
bebb7a8702
Add Indonesian translations (#123)
* Add Indonesian translations

* Fix few strings for all translation files

* Update credits

---------

Co-authored-by: Athozus <athozus@gmail.com>
2023-12-05 22:31:40 +01:00
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org
8137e9405d
es_ES locale update (#117) 2023-10-23 19:35:28 -04:00
BuckarooBanzay
2111db2ff9 check if message is found in mail.show_message 2023-10-24 00:34:12 +02:00
Athozus
f8f500ed76
Do not call show_message() if selected message is empty (fix #115) 2023-10-24 00:33:14 +02:00
Athozus
7754e7e361
Add check for mailing list nil description (fix #112) 2023-10-16 20:36:05 +02:00
Athozus
80ae9c3342
Add message id in player selections storage (fix #110, fix #114) 2023-10-16 20:32:06 +02:00
OgelGames
8d7c8c63cf
step names in luacheck workflow 2023-09-28 18:58:25 +10:00
David Leal
88a276f4cb
Use a faster and newer LuaCheck (#113) 2023-09-27 21:02:49 +02:00
Athozus
e5996469fb
Reworked settings (#111)
* Store globally settings (type and default value)

* Add settings groups

* Generate settings pages with global storage

Add saving, generate selection idxs from settings list, order settings via index value in each group of settings

* Rewrite setting store

No code change, only format

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

* Remove tabs from settings groups

Use spaces instead

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

* Use table.copy() minetest api function

* Better formatting for setting tooltip

Using inline instead of multiples lines to add tooltip attached to setting into formspec

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>

---------

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2023-09-14 20:35:30 +02:00
savilli
fe533eeb4d
Fix crash if non-existent mail was selected (#109)
* Fix crash if non-existent mail was selected

* Fix outbox too
2023-08-06 13:12:46 +02:00
Athozus
2a18322cdb
Remove unexcepted translation from base directory 2023-07-20 00:50:10 +02:00
Athozus
7ae5bda5ab
Quick restructuration of files (create sub-init.lua) 2023-07-20 00:50:10 +02:00
Athozus
a9a4c8c4dc
Redesign settings and about layout 2023-07-20 00:50:09 +02:00
Athozus
9990d56004
Add checks for cc/bcc/subject in mail.send() and mail.save_draft() api functions
Fix api new checks failed builds
2023-07-20 00:49:58 +02:00
Athozus
9c041f5905
Release 1.3.0 2023-07-18 23:11:26 +02:00
Athozus
b4ccc168c6
Update Spanish translation (Chache) 2023-07-18 23:09:36 +02:00
Athozus
67108c6771
Update credits 2023-07-17 22:20:58 +02:00
Niklp09
09791d58a7 Update german translation 2023-07-17 21:54:23 +02:00
Athozus
a6f16c847e
Fix French translation 2023-07-17 19:55:44 +02:00
Athozus
f171a3d50a
Change highlighted color 2023-07-17 17:49:33 +02:00
Athozus
be8f0e590f
Add a setting to choose date format 2023-07-17 16:45:57 +02:00