diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2019-04-17 09:15:32 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2019-04-17 09:15:32 +0200 |
commit | 51c61834e3edf60b9df877f628801704adf1c70d (patch) | |
tree | 3ef3110f7af1736652a010950e332e8b1852d74e /init.lua | |
download | auth_export-51c61834e3edf60b9df877f628801704adf1c70d.tar.gz auth_export-51c61834e3edf60b9df877f628801704adf1c70d.tar.bz2 auth_export-51c61834e3edf60b9df877f628801704adf1c70d.zip |
First commit
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..990ee0c --- /dev/null +++ b/init.lua @@ -0,0 +1,16 @@ +local http = minetest.request_http_api() +mail = {} +local MP = minetest.get_modpath(minetest.get_current_modname()) +mail.webmail = {} +mail.webmail.disallow_banned_players = true +if http then + local webmail_url = "http://127.0.0.1:8080" + local webmail_key = "foo bar baz" -- not used in the mod but might get used in the future. + + if not webmail_url then error("webmail.url is not defined") end + if not webmail_key then error("webmail.key is not defined") end + + print("[mail] loading webmail-component with endpoint: " .. webmail_url) + dofile(MP .. "/webmail.lua") + mail.webmail_init(http, webmail_url, webmail_key) +end |