1
0
Fork 1
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:
Koncord 2017-09-13 20:33:42 +08:00
parent f814ae795d
commit c2286482ae

View file

@ -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