shivajiva101
059026b578
Update README.md
...
mention hacked clients accessing the gui get an automatic ban
2021-12-29 13:53:44 +00:00
shivajiva101
e026252595
Merge dev branch ( #38 )
...
* Update: restructure code
separate the code logic from the sql statements to add
a distinct layer between executing statements against
the database and the success and failure of the action,
so logging and errors are processed on the new layer
and the logic is easier to follow and debug.
* Added: retry mechanism to process failed jobs
create_player function now adds failed attempts to failed[]
under job type 1 for further attempts. Failure eventually
kicks the player. Possibility now exists to code other db
insert and update functions as jobs if they fail after first
attempt
* Added: ban status text field to the ban gui
* Update: comments & log event
2021-12-27 01:29:11 +00:00
shivajiva101
abfc5c5214
Fixes: deprecated warning for getpos
2021-12-16 19:26:22 +00:00
shivajiva101
6d5813745c
Added: check active and expired table entries
...
ensure active and expired tables don't contain '' in expires field
2021-12-14 01:36:32 +00:00
shivajiva101
a0e38ced3e
Added: missing conf api setting ( #36 )
...
added API conditional branch and setting for sban.api
defaults to true so user has option to disable the API
but mods have access by default
2021-12-13 23:35:16 +00:00
shivajiva101
c114494c20
Update README.md
...
attempt to make the db update scenario clearer to users
2021-12-13 15:45:50 +00:00
shivajiva101
a649ab321c
Delete tmp
2021-12-12 23:57:43 +00:00
shivajiva101
beec13e686
Modifies: db_exec function
...
add the origin of the sqlite errors for this mod
return false & message on error - currently not used elsewhere in code
2021-12-12 23:46:03 +00:00
shivajiva101
b86827d72c
Remove luacheck warning
2021-12-12 21:09:56 +00:00
shivajiva101
7ce051fb77
Fixes: detection of player new account names
...
remove join cache as it breaks new names for a player id due to malformed logic
2021-12-12 20:58:09 +00:00
shivajiva101
ea5e0b26c7
Fixes: permanent bans expiring during update
...
fully qualify the conditions for active bans expiring to prevent permanent bans expiring!
2021-12-12 11:31:09 +00:00
shivajiva101
adb7e3b7e7
Updates: CI to github
...
* Create check-release.yml
* Update README.md - change/add badges
* Update init.lua - removed unused var causing warning!
* Delete .travis.yml
2021-12-11 21:36:56 +00:00
shivajiva101
96eb4f4cb8
Fixes: crash vector in ban gui
...
ensure ban gui page arrows are always cleared to prevent server crashing if they are clicked without the context that triggered their appearance
2021-12-11 17:18:26 +00:00
shivajiva101
bb9710c6bb
Added: cleaner checking for irc mod
2021-12-11 10:42:26 +00:00
shivajiva101
d5bd6e255b
Added: data integrity check
...
check for orphaned active ban records when mod loads and log them in the debug text file
2021-12-10 01:08:49 +00:00
shivajiva101
440000d82b
Fixes: crash in issue #34
...
prevent crash vector from legacy null field and give meaningful output for a permanent ban in the GUI
2021-12-09 00:46:34 +00:00
shivajiva101
fc1df33e5f
Fixes: incomplete record data in expired bans
...
catch legacy records with null expires field and update to reflect permanent ban being revoked
2021-12-09 00:12:11 +00:00
shivajiva101
381bba309a
Fixes: expired bans processing on mod load
...
fix typos
2021-12-08 22:58:01 +00:00
shivajiva101
4189cf4caf
Fixes: null expires entries in migration process
...
catch null expires entries correctly when the data is migrated from the ban table to fix issue #34
2021-12-08 00:04:00 +00:00
shivajiva101
30c882337b
Assign db timeout handler
...
Allow 50ms for a db transaction if a busy state is encountered
2020-09-13 22:14:39 +01:00
shivajiva101
439bca09cb
Log db:errmsg when create_ban_record name search fails
2020-09-12 15:33:23 +01:00
shivajiva101
7d49031c3a
Ensure ban name is passed to kick if search fails ( #32 )
...
* Ensure ban name is passed to kick if search fails
* Add logging for failed name search
2020-09-12 10:36:38 +01:00
shivajiva101
44695d22df
Update README.md
2020-05-09 01:04:16 +01:00
shivajiva101
50c116692a
Update init.lua
2020-05-08 20:26:36 +01:00
shivajiva101
4f82eb5550
Fix: linter warnings
2020-05-08 20:23:45 +01:00
shivajiva101
7ada3c96eb
revert prev change
2020-05-08 20:22:07 +01:00
shivajiva101
01c48c8fac
Update .luacheckrc
2020-05-08 20:08:27 +01:00
shivajiva101
3eeeaaa705
Create depends.txt
2020-05-08 20:05:33 +01:00
shivajiva101
e78b6c994b
add irc optional dependency
2020-05-08 20:03:54 +01:00
shivajiva101
f693d54557
Add: missing irc functionality
...
Don't rely on other maintainers accepting PR's for functionality, override instead!
Remove extraneous new lines in ban_record output
Require correct db version before allowing mt to run
2020-05-08 20:01:59 +01:00
shivajiva101
7e06739e00
Fixes: Travis warnings
2020-05-07 10:07:38 +01:00
shivajiva101
b4ecb070af
Fixes: ban_record command output to IRC
...
refactor player_record to return a string so ban_record chat command is used correctly
strip newline to compact the output and clean it up
2020-05-06 20:52:21 +01:00
shivajiva101
01fb30eeff
fix typo in prev commit
2020-05-02 02:34:40 +01:00
shivajiva101
534a540e1d
Add a msg for ban status when player is not banned
2020-05-01 20:08:06 +01:00
shivajiva101
e034f17c5f
Fix issue #30
...
Correct row header supplied to format #10 param
2020-01-13 00:55:48 +00:00
shivajiva101
ca8a38bdf0
Update README.md
2019-12-15 20:14:27 +00:00
shivajiva101
39971babf0
Update conf settings section
2019-12-15 20:12:59 +00:00
shivajiva101
9a10f0c25c
Remove whitespace
2019-12-06 08:59:50 +00:00
shivajiva101
4477ed90ef
Reorder prejoin event to cache exclusions
...
Reorder prejoin event to cache white listed players and owner
2019-12-01 16:28:49 +00:00
shivajiva
e526eb6431
colorize some command output
...
add colour for readability to /whois and ban_record output
2019-11-29 23:40:21 +00:00
shivajiva101
03fa84d47a
Update /whois command
...
restructure the /whois command to require v as an extra parameter to extend ip address display from last ip to the full list in descending order of last login as used previously.
2019-11-28 20:33:45 +00:00
shivajiva101
507ddc9754
Update README.md
2019-11-28 16:13:22 +00:00
shivajiva
4627dee959
Fix: import/export functions
...
rework import of xban.db file for ban_dbi & ban_dbe commands to work
with strongly typed and indexed db fields in the new schema
2019-11-28 15:05:36 +00:00
shivajiva101
e269b6dfd5
Fixes crash reported in #29
...
Initialise last_pos if nil to prevent crash
2019-11-26 09:29:43 +00:00
David Leal
af9d1c41dd
Give privilege to administrator automatically ( #28 )
...
The 'ban_admin' privilege will be given automatically to admins.
2019-11-25 09:03:45 +00:00
shivajiva
fac3e48808
fix importer
...
ensure expires field is supplied the correct type
modify remaing checks and initialisation of expires to default to 0 if
missing and exclude 0 from any expired test
2019-11-24 23:06:08 +00:00
shivajiva101
b184bf12be
Fix typo causing crash
2019-10-29 05:46:04 +00:00
shivajiva101
bcf2ea2fc5
Remove trailing space
2019-10-09 11:05:57 +01:00
shivajiva101
bde23ed3f8
Add optional ip per id limit
...
adds the ability to limit the amount of ip addresses an id can have
2019-10-04 21:40:48 +01:00
shivajiva101
d5e901f49a
Re-add newline removed on prev commit
2019-09-26 19:17:18 +01:00