forked from teamnwah/openmw-tes3coop
[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
|
elseif command == "banlist" then -- can be used only as last command
|
||||||
local data = json.encode(banned, { indent = true--[[, keyorder = {"address", "date", "by", "reason"} ]] })
|
local data = json.encode(banned, { indent = true--[[, keyorder = {"address", "date", "by", "reason"} ]] })
|
||||||
return true, ResponseStr(data)
|
return true, ResponseStr(data)
|
||||||
|
elseif command == "savebans" then
|
||||||
|
saveBans()
|
||||||
end
|
end
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue