Commit Graph

119 Commits

Author SHA1 Message Date
Luke Miller
66c4e63adb starting refactor, simple functionality works atm 2021-04-03 23:01:31 -04:00
user
41274b2ff7 add warning to modpol.record 2021-03-25 18:16:49 -04:00
user
252c04c6c7 bugfix orgs 2021-03-25 17:37:43 -04:00
Luke Miller
4c912f0e1b Merge branch 'master' of https://gitlab.com/medlabboulder/modpol 2021-03-21 23:00:24 -04:00
Luke Miller
f6e6b8acc1 fixed error where orgs without a ledger crash the server when the reset_orgs function is run 2021-03-21 23:00:03 -04:00
Nathan Schneider
ac6bae3f85 Added modpol.menu() functions modpol and modpol_minetest. Not sure if latter works. 2021-03-14 22:51:53 -06:00
8faca7931a Merge branch 'fix_storage_crash' into 'master'
fix modpol storage of old_ledgers

See merge request medlabboulder/modpol!10
2021-03-10 07:09:16 +00:00
MisterE123
aeb9ec5dc1 fix modpol storage of old_ledgers 2021-03-10 02:03:15 -05:00
501ef4d354 Merge branch 'fix_storage_crash' into 'master'
fix modpol storage of old_ledgers

See merge request medlabboulder/modpol!9
2021-03-10 06:56:49 +00:00
MisterE123
dc87322dbb fix modpol storage of old_ledgers 2021-03-10 01:52:42 -05:00
MisterE123
6ab11d4f2d try a third time to fix crash 2021-03-10 01:40:04 -05:00
MisterE123
1f48e8ff1a try again to fix crash 2021-03-10 01:29:20 -05:00
MisterE123
dae67b3efd fix dump crash 2021-03-10 01:11:49 -05:00
MisterE123
419fc84822 change orgs to use id numbers as their table key and function input param 2021-03-08 14:06:15 -05:00
MisterE123
d646a4a8dd rework orgs. Add various properties to orgs. Make all org functions return success boolean as well as error/success string message. 2021-03-01 19:11:20 -05:00
Nathan Schneider
4f53e801c4 Some unfinished, broken additions to processes 2021-02-20 22:48:17 -07:00
6a6220b253 Added modpol.approved and modpol.add_policy functions 2021-02-11 21:59:17 +00:00
MisterE123
dc12ec50a9 Change file structures so that the interior modpol folder IS the portable modpol.
Added documentation of how to pre-define the modpath and the storage file.
2021-02-11 16:39:51 -05:00
MisterE123
f19796f82d *Reorganized code so that further expansion is possible in a very organized manner.
*modpol.add_member() -- added a check if the member is already a member of that organized

*storage -- fixed bug by moving storageref to top of file

*added on_joinplayer to add players to instance

*moved minetest specific code in init.lua to modpol_minetest, organized in folders.
All overrides in one folder, all chatcommands in another, the on_joinplayer in modpol_minetest/orgs/instance.lua
2021-02-10 23:40:28 -05:00