PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: gizmo on 27 November, 2003, 12:41:16

Title: redirect dc++
Post by: gizmo on 27 November, 2003, 12:41:16
Hi

we have a only nmdc users hub in our network i have a script but it not redirect dc++ users can someone please help


infotag = { "<++" }
botName = "xxx?"
redaddress = "xxx.myftp.org"

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: NightLitch on 27 November, 2003, 14:05:51
Try this one Gizmo...

infotag = { "<++" }
botName = "xxx?"
redaddress = "xxx.myftp.org"

function NewUserConnected(curUser)
if not curUser.iProfile == 2 then
for key,checkWord in infotag do
if strfind(curUser.sMyInfoString, checkWord, 1, 1) then
curUser:SendData(botName,"DC++ client isn't allowed here, You are beeing redirected to a equally Cool Hub")
curUser:SendData("$ForceMove "..redaddress.."|");
curUser:Disconnect()
end
end
end
end

/NL