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
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