diff --git a/examples/plugins/add_ban.lua b/examples/plugins/add_ban.lua index 19521c2d..deeba83e 100644 --- a/examples/plugins/add_ban.lua +++ b/examples/plugins/add_ban.lua @@ -8,9 +8,12 @@ events.register_event({"message-pre-format"}, function(tr, post, req) log.warn_log() :Str("IP", post.IP) :Msg("Banning post from Lua event") - err = manage.ban_ip(post.IP, nil, "banned from Lua plugin", "admin", { - board = "test" - }) + err = manage.ban_ip(post.IP, nil, "banned by Lua plugin event", "admin") + -- The below code will make it so the poster is only banned from /test/ and cannot appeal + -- err = manage.ban_ip(post.IP, nil, "banned by Lua plugin event", "admin", { + -- board = "test", + -- appealable = false + -- }) if(err ~= nil) then return err:Error() end diff --git a/plugin_api.md b/plugin_api.md index 1ab728b7..b3bd7beb 100644 --- a/plugin_api.md +++ b/plugin_api.md @@ -44,7 +44,7 @@ The following are modules that can be loaded via `require("modulename")`. See [. ## manage - **manage.ban_ip(ip string, duration string, reason string, staff string|int, options table)** - - Bans the given IP for the given duration and gets/expects other optional ban data from the `options` table below + - Bans the given IP for the given duration and gets other optional ban data from the `options` table below Key | Type | Explanation ---|---|---