Update init.lua

pull/13/head
loveshell 2013-11-08 10:37:28 +08:00
parent 9c98cefeea
commit 87646bb1ef
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ end
------------------------------------规则读取函数-------------------------------------------------------------------
function read_rule(var)
file = io.open(rulepath..'/'..var,"r")
if file==nil then
return
end
t = {}
for line in file:lines() do
table.insert(t,line)