Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.

Commit 6d52ffc

Browse files
committed
Remove deprecated function,...
...update README.md, use mod.conf for dependencies and description. Deletes deprecated 'depends.txt'.
1 parent 67dc261 commit 6d52ffc

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# mysql_auth
1+
# MySQL Authentication
22

33
Plug Minetest's auth mechanism into a MySQL database.
44

5-
# Configuration
5+
## Configuration
66

77
First, if mod security is enabled (`secure.enable_security = true`), this mod must be added as
88
a trusted mod (in the `secure.trusted_mods` config entry). There is **no** other solution to
99
make it work under mod security.
1010

11-
By default `mysql_auth` doesn't run in singleplayer. This can be overriden by setting
11+
By default, `mysql_auth` doesn't run in singleplayer. This can be overriden by setting
1212
`mysql_auth.enable_singleplayer` to `true`.
1313

1414
Configuration may be done as regular Minetest settings entries, or using a config file, allowing
@@ -37,7 +37,7 @@ db.db = nil -- <== Setting this is required
3737
### Lua table config file
3838

3939
Connection options are passed as a table through the `db.connopts` entry.
40-
Its format must be the same as [LuaPower's MySQL module `mysql.connect(options_t)` function][mycn],
40+
It's format must be the same as [LuaPower's MySQL module `mysql.connect(options_t)` function][mycn],
4141
that is (all members are optional);
4242

4343
```lua
@@ -113,11 +113,11 @@ mysql_auth.db.db = minetest
113113
mysql_auth.db.tables.auth.name = skyblock_auths
114114
```
115115

116-
# License
116+
## License
117117

118-
`mysql_auth` is licensed under [LGPLv3](https://www.gnu.org/licenses/lgpl.html).
118+
`mysql_auth` is licensed under [GNU LGPLv3](https://www.gnu.org/licenses/lgpl.html).
119119

120120
Using the Public Domain-licensed LuaPower `mysql` module.
121121

122122

123-
[mycn]: https://luapower.com/mysql#mysql.connectoptions_t---conn
123+
[mycn]: https://luapower.com/mysql#mysql.connectoptions_t---conn

depends.txt

-2
This file was deleted.

init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616

1717
local singleplayer = minetest.is_singleplayer() -- Caching is OK since you can't open a game to
1818
-- multiplayer unless you restart it.
19-
if not minetest.setting_get(modname .. '.enable_singleplayer') and singleplayer then
19+
if not minetest.settings:get(modname .. '.enable_singleplayer') and singleplayer then
2020
LogI("Not adding auth handler because of singleplayer game")
2121
return
2222
end

mod.conf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name = mysql_auth
2+
depends = mysql_base
3+
description = Source auth entries in a MySQL database.

0 commit comments

Comments
 (0)