PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Flux on 03 February, 2004, 15:29:06

Title: DC++ script needed.
Post by: Flux on 03 February, 2004, 15:29:06
I know this maybe a little stupid and it maybe somewhere. Well if it is somewhere i cannot find it in the search engine.

Any way I want a script that just allows DC++ users in the hub.

I have checked the Client Checker and think it's too much cause u can allow this and disallow that.

Is there a small simple script that just allows DC++ clients and kicks the rest stating Only DC++ clients here and it shows the the website to get it in a PM.

Also i know that Ptokax has a feature built in. But it would be helpful to have a script.

Can you help me in this script or show me the way to find it.

I have searched and searched maybe i am loosing it and getting too old hehehe...
Title:
Post by: WooshMan on 03 February, 2004, 15:33:05
Try this:


--// DC++ Only by Mephiska - 01.09.2003
infotag = { "<++" }
botName = "DC++X"

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 [URL]http://dcplusplus.sourceforge.net[/URL] and download the newest version of DC++")
SendToNick(curUser.sName, "<" ..botName .."> Disconnecting...")
curUser:Disconnect()
end
end
end


WooshMan
Title:
Post by: Flux on 03 February, 2004, 16:18:45
Syntax error: expected;
  last token read: `<' at line 1 in string "..."
Title:
Post by: Flux on 03 February, 2004, 16:46:31
i found it
--// DC++ Only by Mephiska - 01.09.2003
infotag = { "<++" }
botName = "DC++X"

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 .."> Disconnecting...")
         curUser:Disconnect()   
end
end
end


is this script secure  as other clients use tags simular to dc++ am i right. just concerned incase there clients cheats making hubs think they r dc++.
Title:
Post by: WooshMan on 03 February, 2004, 17:05:48
Yeah you don't need the php bits... sorry.

As far as I know it will only let users in with a tag with ++ in it.

It is easy to find a client which will emulate the ++ part but that is where you need other scripts to find different clients and kick them etc.

WooshMan