Browse Source

Update init.lua

pull/13/head
loveshell 11 years ago
parent
commit
87646bb1ef
  1. 3
      init.lua

3
init.lua

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

Loading…
Cancel
Save