DC++ script needed.
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

DC++ script needed.

Started by Flux, 03 February, 2004, 15:29:06

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Flux

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...
? Official HoD Website - http://www.houseofdance.net
? Official HoD Hub Community -  hodhub.dyndns.org:2007

WooshMan

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.sMyInfoStringcheckWord11then
	
	
	
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
WooshMan

Creator of
originaltimebot.lua
www hubstats

Thanks to Plop, Kepp and NightLitch

Flux

Syntax error: expected;
  last token read: `<' at line 1 in string "..."
? Official HoD Website - http://www.houseofdance.net
? Official HoD Hub Community -  hodhub.dyndns.org:2007

Flux

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++.
? Official HoD Website - http://www.houseofdance.net
? Official HoD Hub Community -  hodhub.dyndns.org:2007

WooshMan

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
WooshMan

Creator of
originaltimebot.lua
www hubstats

Thanks to Plop, Kepp and NightLitch

SMF spam blocked by CleanTalk