1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-27 03:00:38 +01:00

Fix digiline filter injector

This commit is contained in:
sys4-fr 2017-04-09 11:02:48 +02:00
parent 6148ce55b8
commit a2dd80356d

View File

@ -217,7 +217,7 @@ local function punch_filter(data, filtpos, filtnode, msg)
if type(msg.name) == "string" then if type(msg.name) == "string" then
table.insert(filters, {name = msg.name, count = tonumber(msg.count) or 1}) table.insert(filters, {name = msg.name, count = tonumber(msg.count) or 1})
else else
for _, filter in ipairs(msg) do for _, filter in ipairs(msg.name) do
local t_filter = type(filter) local t_filter = type(filter)
if t_filter == "table" then if t_filter == "table" then
if type(filter.name) == "string" then if type(filter.name) == "string" then