From c2286482ae87f6cb944d4bb0365284ec053dd5d8 Mon Sep 17 00:00:00 2001 From: Koncord Date: Wed, 13 Sep 2017 20:33:42 +0800 Subject: [PATCH] [Master] Add 'savebans' command to RESTful API --- files/tes3mp/master/master.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/tes3mp/master/master.lua b/files/tes3mp/master/master.lua index 192d55b64..779a06e3f 100644 --- a/files/tes3mp/master/master.lua +++ b/files/tes3mp/master/master.lua @@ -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