PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: gizmo on 17 April, 2004, 23:41:29

Title: redirect when not regged
Post by: gizmo on 17 April, 2004, 23:41:29
can somone please help me with a skript that redirect if thay not regged to a specified hub ? we have a reghub but the should talk tom an su or op in the hub where they been redirected to to get pass
Title:
Post by: nErBoS on 18 April, 2004, 01:22:27
Hi,

Hope it helps...

--Requested by gizmo
--Made by nErBoS

sBot = "UnReg-REDIRECT"

redirectadd = "1.1.1.1" -- Address to redirect

function Main()
frmHub:RegBot(sBot)
end

function NewUserConnected(user, data)
if (user.iProfile == -1) then
user:SendData(sBot, "This Hub is only for registered users.")
user:SendData("$ForceMove "..redirectadd.."|")
end
end

Best regards, nErBoS
Title:
Post by: gizmo on 18 April, 2004, 16:17:56
tnx =) works fine