Client check
 

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

Client check

Started by Peura, 23 August, 2004, 08:38:51

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Peura

I need script witch will check user tag and kick if it is not ok. I only want user use client dc++ 0.306-0.401 and oDC 5.212-5.312

Those are only client what is ok... all others are bad client.

Tag:

<++ V: 0.25.... is for oDC 5.212
<++ V: 0.306... is for oDC 5.312
<++ V:0.306 - 0.401... is for dc++ 0.306-0.401

all others are bad client

I try to search but i did not found nothing

I dont want use dmdc++ because its disconnect user witch are ok and i dont want to run two client @ same time. DMDC is banned in many hubs i use...

nErBoS

Hi,

There is a script that does that, try to search in Finished Scripts.

Best regards, nErBoS
--## nErBoS Spot ##--

ARCHANGEL

Is this what you are looking for?

Client Shield bt NIghtLitch.

http://board.univ-angers.fr/thread.php?threadid=1562&boardid=12

Peura

i have test that allready and i does not work like I want to. I need script witch allow only client with this tag:

<++ V: 0.25.... is for oDC 5.212
<++ V: 0.306... is for oDC 5.312
<++ V:0.306 - 0.401... is for dc++ 0.306-0.401

and that one allow all dc++ and oDC(?).

NightLitch

I tell u what, just because Am bored I do the script for ya...
//NL

Peura

QuoteOriginally posted by NightLitch
I tell u what, just because Am bored I do the script for ya...

 :D

BottledHate

so i hacked up the one that was linked here in a few minutes.... Client Shield by NightLitch... it does what u want i think. cept for one thing.. when i tried to test with the:
<++ V: 0.306... is for oDC 5.312

i got:
Private message from PtokaX: Unknown user agent! Bye!

which is pto itself.. so i dunno how it will handle the ones with spaces in front of the (V:)  :
<++ V: 0.25.... is for oDC 5.212
<++ V: 0.306... is for oDC 5.312
........

Seems to work well with everything else.

--//Client Shield by NightLitch
--//Hacked to hell by BH as a request from Peura
-------------------------------------------------
sBot = "Client-Shield"
-------------------------------------------------
AllowClients = {
["DC++"]=1,
["oDC"]=1,
}
sClients = {
{ "= 0.402 then
               sUser:SendData(sBot,"Your DC++ is too ?new?.. ??Down-grade??")--//lol???(requested)
               sUser:Disconnect()            
            end
			else
            if Version <= 5 then --//oDC that look like oDC
               sUser:SendData(sBot,"Your oDC is too Old.. Upgrade.")
               sUser:Disconnect()
            elseif Version >= 5.32 then
               sUser:SendData(sBot,"Your oDC is too ?new?.. ??Down-grade??")
               sUser:Disconnect()
            end
         end
		end
	end
end

oh yeah.. only works on users.. leaves ops alone.

-BH
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

BottledHate

a new one from NightLitch... be sure to check it out... i
think it does what u want perfectly.....
THREAD


-BH
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

Typhoon

i got:
Private message from PtokaX: Unknown user agent! Bye!


answer : Go into Rules and Bots
to the right set it to accept users without dc tag ..
the betas are made before the new oDC tag was official.
that should solve it. :)

*** Typhoon?



BottledHate

Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

SMF spam blocked by CleanTalk