Commit Graph

44 Commits

Author SHA1 Message Date
bri cassa 0f62057622 Merge remote-tracking branch 'upstream/master' 2023-11-25 15:52:08 +01:00
David Leal e870b8d1d6
Add a license file (#27) 2023-09-11 20:49:22 +02:00
luk3yx c850d11a3c
Use JSON in xban.db (#26)
This should prevent bans database from resetting with a "function has more than 65536 constants" error. Older databases should still be loaded correctly.

Also makes use of minetest.safe_file_write to avoid data corruption.
2023-09-07 17:38:26 +02:00
Sys Quatre 1faa658651 Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-06-14 23:11:26 +02:00
sfan5 d2cda4f73a Improve behavior of GUI search field 2020-06-02 13:09:52 +02:00
Sys Quatre 72a99b2b18 Merge branch 'master' of yunohost:minetest-mods/xban2 into nalc-1.2-dev 2019-12-22 16:08:18 +01:00
sfan5 37cdbf014e Fix list of names in log message upon (un-)banning 2019-11-05 16:49:50 +01:00
Thomas Rudin e937f5ff67 Add /xban_cleanup command to purge unbanned entries (#20)
Add documentation for /xban_cleanup
2019-06-06 18:54:46 +02:00
Sys Quatre 43acd1c620 Merge branch 'master' into nalc-1.2 2019-05-10 02:25:27 +02:00
Diego Martínez 3b70045365 Update to 5.0 auth. 2019-02-12 16:53:03 -03:00
sys4-fr 58e77ad16c Ajoute message de chargement du mod dans le journal "action" 2019-01-19 20:40:01 +01:00
sys4-fr af26ae75bd Merge branch 'master' into nalc 2019-01-19 20:34:30 +01:00
SaKeL 3270942a0f Replace deprecated minetest.setting_* functions (#16) 2018-07-22 13:20:35 +02:00
Diego Martínez 6738109c15 Create README.md 2017-04-24 04:44:47 -03:00
Diego Martínez 89303b4a01 Add `.luacheckrc` and fix warnings. 2017-02-17 02:30:30 -03:00
Diego Martínez 97fb251ad9 Better diagnostics in case of DB load error. 2016-12-11 17:57:29 -03:00
Agaran 877e550787 Filter fields submission by privs. 2016-11-26 16:49:12 -03:00
Auke Kok 33e3fcd15b Create mod.conf 2016-11-18 19:01:20 -03:00
Diego Martínez 320abd34de GUI: Make `/xban_gui` only usable by players with `ban` priv. 2016-10-20 10:24:44 -03:00
Diego Martínez 49db5aa888 Add whitelisting. 2016-10-19 20:19:16 -03:00
Diego Martínez 63e3600352 Disallow banning already-banned players.
Fixes #9.
2016-10-10 03:58:53 -03:00
Dorian Wouters 8fde3c240f
Fix error when using an auth handler not providing enumerate_auths 2016-08-25 23:11:49 +02:00
Dorian Wouters d200b342e9
Use auth_handler's enumerate_auths (not auth_table) if available 2016-08-23 01:36:57 +02:00
Diego Martinez 974b47f8f6 Make the GUI a little better. 2016-05-05 07:53:49 -03:00
Diego Martínez 2903f6ae5a Fix spurious warnings on database save. 2015-11-01 14:04:33 -03:00
Diego Martinez 5d91fb66ad Add `bower.json`. 2015-10-31 11:16:46 -03:00
Diego Martinez 932e67676b Fix temporary ban checker not being registered. 2015-10-26 20:09:04 -03:00
Diego Martinez 0314ced292 Add source of ban to `get_record`. 2015-10-26 19:51:46 -03:00
Diego Martínez 76187dbf21 Change chatcommands to return success flag and message. 2015-01-08 13:38:43 -03:00
Diego Martinez 678af46dd7 Don't store the IP of the player if `get_player_ip` fails. 2014-12-26 23:27:48 -03:00
Diego Martínez dc874b5382 Remove leftover debugging statement. 2014-07-16 23:52:24 -03:00
Diego Martinez 8fa41861dd Store last time player logged in into DB. 2014-07-09 06:46:58 -03:00
Diego Martinez 7923c393e9 Add simple GUI to check records interactively. 2014-07-09 06:38:28 -03:00
Diego Martínez 19d92df3bc Fix /xban_record showing last banned time for all entries. 2014-06-27 17:52:59 -03:00
Diego Martinez ed621c5ce0 Add v2 database importer. 2014-06-26 06:52:38 -03:00
Diego Martinez 75c1be2f8e Do not add name and IP to database in on_prejoinplayer. 2014-06-17 03:22:29 -03:00
Diego Martinez e00b331554 Oops. 2014-05-23 08:52:15 -03:00
Diego Martinez a79e7a6419 Save last position of banned users.
Requested by shadowzone and VanessaE.
2014-05-23 05:14:28 -03:00
Diego Martinez ccab1f35c7 Add command to list players' ban record. 2014-05-23 04:53:11 -03:00
Diego Martinez d47e87e390 Allow importing old databases.
Currently:
- Minetest (`ipban.txt')
- xban v1 (`players.iplist')
2014-05-21 07:07:37 -03:00
Diego Martinez 51097eee6b Fix crash trying to format nil as string.
Reported by CWz.
2014-05-20 12:56:07 -03:00
Diego Martinez 2b51822b3e Remove DB backup.
Haters gonna hate.
2014-05-20 00:10:55 -03:00
Diego Martinez 7409fd1be8 Changed DB format from 2 space indent to tabs.
Requested by ShadowNinja.
2014-05-19 23:40:11 -03:00
Diego Martinez 8695476beb First commit. 2014-05-19 23:23:43 -03:00