PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: gizmo on 06 January, 2004, 14:27:03

Title: no nmdc
Post by: gizmo on 06 January, 2004, 14:27:03
Hi

is there someone who can give me a script who redirects old nmdc user i want to redir them to a nmdc hub
Title:
Post by: BlazeXxX on 06 January, 2004, 14:41:36
Hi there,
I wrote a script long time back , which redirects if there is no tag. Which means it will redirect NMDC and other clients which doesn't have tag like
If u wish, i will post it right away?
Title:
Post by: gizmo on 06 January, 2004, 15:16:25
yes thank you =)
Title:
Post by: BlazeXxX on 06 January, 2004, 16:10:14
-- Written by BlazeX
infotag = { "" }
botName = "NMDC"

function NewUserConnected(curUser)
   for key,checkWord in infotag do
      if not strfind(curUser.sMyInfoString, checkWord, 1, 1) then
         SendToNick(curUser.sName, "<" ..botName .."> You are using unauthorized client software, please go to http://dcplusplus.sourceforge.net and download the newest version of DC++")
         SendToNick(curUser.sName, "<" ..botName .."> Redirecting...")
         user:SendData("$ForceMove "..frmHub:GetRedirectAddress())   
end
end
end
Title:
Post by: gizmo on 06 January, 2004, 16:52:49
Tnx m8 =)
Title:
Post by: BlazeXxX on 06 January, 2004, 18:18:19
No pbm ! If it works, i am happy for ya :)