Commit graph

349 commits

Author SHA1 Message Date
Timo Smit
0212af1a6b Only enable chat logging in legacy 2019-01-03 12:51:31 +01:00
Timo Smit
47f9baf277 Fixed consistent checking of standalone setting
* treat everything non-zero as true (enabled)
2019-01-03 12:49:11 +01:00
Timo Smit
6d0ba325f1 Fixed greetings returning errors when database is not connected 2019-01-03 12:14:13 +01:00
Timo Smit
2a71ab2bb1 Updated docs (part II) 2019-01-03 12:09:10 +01:00
Timo Smit
241910ad38 Updated docs.
* docs directory was obsolete and has been removed.
* the readme is more reader friendly now.
* the license has been changed to Markdown format.
2019-01-03 12:08:06 +01:00
Timo Smit
aef9e0d426 Fixed aliases not being updated on connect 2019-01-03 11:28:22 +01:00
Timo Smit
a2f7f1dec4 Fixed OS and mode detection (refs #61, #74)
* fixed OS detection echoing errors to log when executables are not available
* OS detection makes use of Unix/Windows native functions rather than environment variables which can be modified
* fixed ability to override standalone mode
2019-01-03 11:15:22 +01:00
Timo Smit
9e2359363b Fixed closing the database when it is not connected 2019-01-03 11:11:09 +01:00
Timo Smit
da4fd9d235 Implemented checks for availability of TOML files (refs #60) 2019-01-03 11:10:35 +01:00
Timo Smit
7675419d61 Fixed GPL link in README.md 2019-01-02 15:30:48 +01:00
Timo Smit
b4b2b9d2b0 Fixed missing table existence checks 2019-01-02 10:15:24 +01:00
Timo Smit
98d4a30b21 Fixed Lua game init completely being interrupted when database is unavailable (refs #59)
* database module will throw debug messages when it cannot connect or read
* ACL module will enter 'dumb' mode and disallow any permissions (should be changed in future)
2019-01-01 21:12:22 +01:00
Timo Smit
aa67685e45 Improved checks for database availability 2019-01-01 19:50:39 +01:00
Timo Smit
e66d78bd35 Added database config table and schema detection (refs #73)
* only used to store schema version for the moment.
2019-01-01 19:49:38 +01:00
Timo Smit
b8688d7fca Fixed !listplayers taking PERM_INCOGNITO into account (refs #62, #69) 2018-12-31 11:17:26 +01:00
Timo Smit
78139e6e0f Fixed !listmaps not producing any output (refs #62) 2018-12-31 11:15:38 +01:00
Timo Smit
53e31020a1 Fixed incognito command for standalone mode (refs #62) 2018-12-31 11:04:38 +01:00
Timo Smit
44f78fb1d3 ACL system improvements (refs #69)
* renamed 'roles' to 'permissions'
* added player permissions
* added functions to manipulate shrubbot files
2018-12-31 11:03:48 +01:00
Timo Smit
1872921e52 Fixed !setlevel not being correctly saved 2018-04-15 20:36:01 +02:00
Timo Smit
84f008080d Added compatibility note 2018-02-16 12:49:12 +01:00
Timo Smit
27986cbf7a Added autodetection of standalone mode (refs #61) 2018-02-16 12:49:00 +01:00
Timo Smit
de27a4172b Fixed shrubbot flags for other mods (refs #46, #69, #62)
* changed !greeting flag from 'Q' to 'j' to maintain consistency across mods
* changed !cointoss flag to 'Z' so we do not take up another flag
* moved flags to separate files for each mod that includes shrubbot, autoloads on game init
2018-02-16 12:20:23 +01:00
Timo Smit
6a3459d988 Fixed mutes being checked regardless of module mode (refs #61) 2018-02-16 11:59:20 +01:00
Timo Smit
30750d7062 Fix for ACL system being loaded regardless of g_standalone setting
Caused by ACL command which requires the ACL system
2018-02-16 11:33:47 +01:00
Timo Smit
6282c0e9bf Fixed help texts in mute commands 2018-02-15 11:07:08 +01:00
Timo Smit
48522b8dcf Added util.typecheck function to ensure types in certain utility functions (fixes #78) 2018-02-13 11:45:11 +01:00
Timo Smit
25af884c7e Disabled GUID and ban check when database is disabled (fixes #83). 2018-02-13 11:02:38 +01:00
Timo Smit
8ef2d13015 Fixed consistency in deploy script (refs #73) 2018-02-13 09:39:35 +01:00
Timo Smit
ddb2c6fc21 Improved deploy script (refs #73)
* Improved several error messages
* Fixed several bugs related to fs_homepath
* Ability to create and copy pk3
2018-02-12 18:27:08 +01:00
Timo Smit
d27921ea1a Merge branch 'develop/1.1.1' of https://github.com/timosmit/wolfadmin into develop/1.2.0
# Conflicts:
#	luascripts/admin/admin.lua
#	luascripts/admin/rules.lua
#	luascripts/admin/warns.lua
#	luascripts/commands/admin/dewarn.lua
#	luascripts/commands/admin/listlevels.lua
#	luascripts/commands/admin/lock.lua
#	luascripts/commands/admin/putbots.lua
#	luascripts/commands/admin/readconfig.lua
#	luascripts/commands/admin/setlevel.lua
#	luascripts/commands/admin/showwarns.lua
#	luascripts/commands/admin/sprees.lua
#	luascripts/commands/admin/stats.lua
#	luascripts/commands/admin/unlock.lua
#	luascripts/commands/admin/warn.lua
#	luascripts/commands/client/pm.lua
#	luascripts/commands/client/r.lua
#	luascripts/commands/commands.lua
#	luascripts/commands/server/csay.lua
#	luascripts/db/mysql.lua
#	luascripts/db/sqlite3.lua
#	luascripts/game/sprees.lua
#	luascripts/players/greetings.lua
#	luascripts/players/stats.lua
#	luascripts/util/settings.lua
2018-02-12 14:49:39 +01:00
Timo Smit
49fbd3a8f0 Updated copyright 2018-02-12 14:48:34 +01:00
Timo Smit
ed882c58f0 Updated copyright 2018-02-12 14:37:49 +01:00
Timo Smit
68a31b62dd First attempt at a deployment script (refs #73)
Current known flaws:
* only accepts default name for sqlite database (wolfadmin.db)
2018-02-12 13:45:05 +01:00
Timo Smit
ecdd4d96c2 Removed usage instructions from license docs 2017-03-22 11:25:37 +01:00
Timo Smit
3927788b66 Updated MySQL scripts to make use of UTF-8 2017-03-21 18:54:33 +01:00
Timo Smit
875da02712 Fixed !setlevel from console returning unknown command 2017-03-18 12:36:43 +01:00
Timo Smit
2de8a2511c Fixed minor typos 2017-03-17 16:10:06 +01:00
Timo Smit
62126f4b98 Removed empty file 2017-03-17 16:04:45 +01:00
Timo Smit
fba434cf10 Fixed connected players not being added to database on mod init (regression after merge) 2017-03-17 15:40:10 +01:00
Timo Smit
cfd494a5e0 Merge branch 'develop/1.1.1' into develop/1.2.0
# Conflicts:
#	luamods/wolfadmin/db/db.lua
#	luamods/wolfadmin/main.lua
#	luamods/wolfadmin/util/files.lua
#	luamods/wolfadmin/util/tables.lua
#	luascripts/admin/admin.lua
#	luascripts/commands/admin/listlevels.lua
#	luascripts/commands/admin/showwarns.lua
#	luascripts/db/mysql.lua
#	luascripts/db/sqlite3.lua
2017-03-17 15:32:03 +01:00
Timo Smit
65a8ca1854 Fixed GPL link in README.md 2017-03-17 15:02:24 +01:00
Timo Smit
f9609a3260 Added extra condition for empty GUIDs 2017-03-17 15:01:59 +01:00
Timo Smit
034a926bc9 Fixed a file descriptor leak 2017-03-17 14:59:10 +01:00
Timo Smit
a767d7d82a Updated database (upgrade) scripts
* removed level history
* reordering based on constraints
* fixed history
2017-03-17 14:46:19 +01:00
Timo Smit
ab5403da14 Removed !listlevels and moved functionality into !showhistory 2017-03-17 14:05:43 +01:00
Timo Smit
78213fbc78 Updated and fixed upgrade scripts from 1.1.0
* SQLite should now be in correct order
* MySQL added
2017-03-17 13:36:12 +01:00
Timo Smit
3ecbb438cd Updated upgrade scripts from 1.1.0
* renamed scripts
* sqlite should now be consistent with a new database
2017-03-17 12:44:51 +01:00
Timo Smit
db83c8f53f Fixed minor typo 2017-03-17 12:41:27 +01:00
Timo Smit
88512ebca7 Renamed SQL update scripts 2017-03-17 10:33:29 +01:00
Timo Smit
f9b141e675 Updated MySQL database script
* fixed consistency with SQLite
* added tables that were already present in SQLite
2017-03-17 10:23:41 +01:00