PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: gizmo on 21 November, 2003, 23:16:45

Title: vip no redirect
Post by: gizmo on 21 November, 2003, 23:16:45
is there any way to make this script not redirect VIP ??



infotag = { "<++" }
botName = "xxx?"
redaddress = "xxxx"

function NewUserConnected(curUser)
for key,checkWord in infotag do
if strfind(curUser.sMyInfoString, checkWord, 1, 1) then
SendToNick(curUser.sName, "<" ..botName .."> DC++ client isn't allowed here, You are beeing redirected to a equally Cool Hub")
SendToNick(curUser.sName, "<" ..botName .."> Redirecting...|$ForceMove "..redaddress.."|")
curUser:Disconnect()
end
end
end
Title:
Post by: kepp on 21 November, 2003, 23:20:12
infotag = { "<++" }
botName = "xxx?"
redaddress = "xxxx"

function NewUserConnected(curUser)
if not curUser.iProfile == 2 then
for key,checkWord in infotag do
if strfind(curUser.sMyInfoString, checkWord, 1, 1) then
SendToNick(curUser.sName, "<" ..botName .."> DC++ client isn't allowed here, You are beeing redirected to a equally Cool Hub")
SendToNick(curUser.sName, "<" ..botName .."> Redirecting...|$ForceMove "..redaddress.."|")
curUser:Disconnect()
end
end
end
end
Title:
Post by: gizmo on 21 November, 2003, 23:51:39
Tnx works fine now =))
Title: :D
Post by: kepp on 22 November, 2003, 00:12:47
Nada Problemos :)