13 Commits

Author SHA1 Message Date
896a64e835 improve the auth handler on fails for recent versions of mineshit
* i dont use troltest 5.6 version so i try to provide
  compatibility layer in some way
  this means that for older engines we dont have in 0.4.X or 5.1.X
  way to know what was the fail player, 5.2+ has such feature.
2023-06-09 00:11:03 -04:00
7cfe7d928d Authfilter class already init the greenlist.mt so dont try again cos will fail 2022-02-11 00:32:28 -04:00
6f500a53d8 init empty files if there's no one present
* provide a way to initialize files if there is not one
  currently doe snot touch the auth.txt file neither converted
* solves: close: https://codeberg.org/minenux/minetest-mod-auth_rx/issues/6
* solved: close: https://bitbucket.org/sorcerykid/auth_rx/issues/7
* init the files when are fresh install, still do not convert from auth.txt
2022-02-10 17:47:19 -04:00
8b82b4b58f fix usage of level debug in log 2022-01-11 12:13:50 -05:00
a1150b3e46 added nil check for player object, force depends on formspecs
* player object check for problematic joins on inpcomplete auth process
* close fixed https://codeberg.org/minenux/minetest-mod-auth_rx/issues/2
* added missing depends formspecs (it work without in basics but, some commands needs)
* we will later aded formspecs checks to made optional
2022-01-02 20:03:10 -05:00
Leslie Krause
cbd4f2d26c Build 19
- developed in-game database management console
- combined generic filter functions into superclass
- updated debugger to use new GenericFilter class
- added flag for constant-value operands in rulesets
- simplified operand matching logic in rulesets
- optimized comparison algorithm in ruleset parser
- consolidated lookup tables of lexical analyzer
- fixed erroneous status message shown in debugger
- added support for per-player debugging sessions
- redesigned login filter APIs for new architecture
- switched order of return values in login filter
- various code refactoring and better comments
2018-08-20 15:40:00 -04:00
Leslie Krause
e59d77e153 Build 15
- major code reorganization via multiple libraries
- removed extra variables from AuthFilter class
- developed interactive debugger for testing rulesets
- added optional debugger hooks in AuthFilter class
- allowed for overriding preset variables by debugger
- included line-number in results of login filter
- added missing preset variable needed by rulesets
2018-07-30 11:32:53 -04:00
Leslie Krause
c74b12183f Build 14
- implemented address datatype for rulesets
- added more helper functions for use by rulesets
- fixed missing syntax checks in ruleset parser
- developed and integrated AuthWatchdog class
- added meta-variables for stateful login filtering
2018-07-26 17:28:14 -04:00
Leslie Krause
61d1fe67e7 Build 10
- implemented time and date datatypes for rulesets
- updated code samples with latest feature-set
- added time-related functions for use by rulesets
- added time-related variables for use by rulesets
- minor formatting fixes to source code
- optimized comparison algorithm in ruleset parser
2018-07-22 17:56:47 -04:00
Leslie Krause
a0799fe6a4 Build 09
- introduced support for array literals in rulesets
- added array-related functions for use by rulesets
- localized references to transcoding functions
- registered chat command to control login filtering
- included support for disabling login filtering
- added reload function to AuthFilter class
- tweaked lexer to skip comments on ruleset loading
- added search function to AuthDatabase class
2018-07-19 17:10:53 -04:00
Leslie Krause
5b5ccd7b51 Build 06
- moved Journal and AuthDatabase classes into library
- added rollback function to AuthDatabase class
- reworked journal audit to support rollback option
- better encapsulated database commit function
- allowed for STOPPED opcode during database update
- various changes to error and action messages
- moved command-line scripts to separate directory
- included script to rollback database via journal
- included script to extract debug log into journal
2018-07-13 22:42:00 -04:00
Leslie Krause
abaa02b036 Build 04
- general code cleanup of AuthFilter class
- moved datasets into separate directory of world
- added two more comparison operators for rulesets
- tweaked pattern matching behavior in rulesets
- changed database search method to use Lua regexes
- removed hard-coded file names from database methods
2018-07-08 18:14:08 -04:00
Leslie Krause
df42508ef6 Build 01
- initial beta version
2018-06-30 19:14:52 -04:00