PtokaX forum

Archive => Archived 5.1 boards => Conversion Requests => Topic started by: baba.runner on 27 July, 2007, 16:21:25

Title: Convert ISP Blocker from LUA4 to LUA5.1.X
Post by: baba.runner on 27 July, 2007, 16:21:25
Dear All

Can you please convert the following script to LUA5.1.x
http://forum.ptokax.org/index.php?topic=3410.0 (http://forum.ptokax.org/index.php?topic=3410.0)

Thanks in advance.

KR
baba.runner
Title: Re: Convert ISP Blocker from LUA4 to LUA5.1.X
Post by: 6Marilyn6Manson6 on 27 July, 2007, 16:43:16
Change Line 36:

for a,b in partial do

to:

for a,b in pairs(partial) do
Title: Re: Convert ISP Blocker from LUA4 to LUA5.1.X
Post by: baba.runner on 27 July, 2007, 21:34:33
Thank you very much

That was pretty easy and fast  ;D
Title: Re: Convert ISP Blocker from LUA4 to LUA5.1.X
Post by: bastya_elvtars on 27 July, 2007, 23:37:58
It won't work, since there is no tohostname() in recent versions of Px.