mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 03:15:32 +00:00
[Master] Add 'savebans' command to RESTful API
This commit is contained in:
parent
f814ae795d
commit
c2286482ae
1 changed files with 2 additions and 0 deletions
|
@ -146,6 +146,8 @@ function OnCommand(command, v, address)
|
|||
elseif command == "banlist" then -- can be used only as last command
|
||||
local data = json.encode(banned, { indent = true--[[, keyorder = {"address", "date", "by", "reason"} ]] })
|
||||
return true, ResponseStr(data)
|
||||
elseif command == "savebans" then
|
||||
saveBans()
|
||||
end
|
||||
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue