comparison LFGFilter.lua @ 37:bd37437751e9

whitespace
author ovolkov
date Tue, 07 Jul 2015 02:30:12 +0300
parents c68c0833cb6d
children 489a16432564
comparison
equal deleted inserted replaced
36:c68c0833cb6d 37:bd37437751e9
197 197
198 -- dump(result_env) 198 -- dump(result_env)
199 199
200 for alias, original in pairs(aliases) do result_env[alias] = result_env[original] end 200 for alias, original in pairs(aliases) do result_env[alias] = result_env[original] end
201 201
202 -- dump(result_env) 202 -- dump(result_env)
203 203
204 local pass 204 local pass
205 if check then 205 if check then
206 setfenv(check, result_env) 206 setfenv(check, result_env)
207 pass = check() 207 pass = check()
257 end 257 end
258 258
259 function LFGPrintFindDungeon(upper_limit, pattern) 259 function LFGPrintFindDungeon(upper_limit, pattern)
260 local lower_limit = 1 260 local lower_limit = 1
261 if not pattern then 261 if not pattern then
262 lower_limit = upper_limit 262 lower_limit = upper_limit
263 pattern = GetLFGDungeonInfo(upper_limit) 263 pattern = GetLFGDungeonInfo(upper_limit)
264 end 264 end
265 for idx = lower_limit, upper_limit do 265 for idx = lower_limit, upper_limit do
266 local name = GetLFGDungeonInfo(idx) 266 local name = GetLFGDungeonInfo(idx)
267 if name and name:find(pattern) then 267 if name and name:find(pattern) then