Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new feature: support importing xban2 dbs #9

Open
fluxionary opened this issue Sep 22, 2020 · 0 comments
Open

new feature: support importing xban2 dbs #9

fluxionary opened this issue Sep 22, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@fluxionary
Copy link
Owner

fluxionary commented Sep 22, 2020

this should be fairly straightforward. xban2's "database" is an array of entries like

{
    names = {"foo", "bar", "123.123.123.123"},  -- names & ips mixed
    banned = nil or true,
    reason = nil or "ban/unban reason",
    source = nil or "foo" -- player who banned, or "xban:importer_*",
    time = nil or 12345, -- seconds since epoch as an int
    expires = nil or 12345, -- expiration time in seconds since epoch
    record = {
        { source = "source", reason="ban/unban reason", time = 1234, expires = nil or 1234 }
    }
}

see https://github.com/minetest-mods/xban2

@fluxionary fluxionary added the enhancement New feature or request label Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant