mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-02 02:36:24 -07:00
Remove expects from ban_ip explanation, since table is all optional stuff
This commit is contained in:
parent
7e6936f509
commit
c9abd7a162
2 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
---|---|---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue