mod the function in the script
 

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

mod the function in the script

Started by bsalsa, 22 January, 2004, 17:40:43

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bsalsa

You all know the problem with odc new 5.31 tags
how do i change the function that it will allow only dc++ and odc (all versions) and pc pro (without emulating dc pro)clients?? i do not wish to allow all the other clients.
thanks for your help and support

-------- CanCerberoSection -------
function CheckPlusPlus(user)
   if strfind(user.sMyInfoString,"<++") then
      if user.bOperator then
         UserStatus = "OPerator"
         SpUserStatus = "OPerador"
      else
         UserStatus = "User"
         SpUserStatus = "Usuario"
      end
      SendToAll(Bot,"[CanCerbero]?\r\nThe "..UserStatus.." "..user.sName.." has connected to the HUB.\r\nEl "..SpUserStatus.." "..user.sName.." ha conectado al HUB.\r\n")
      CheckMyInfo(user, user.sMyInfoString)
      LoggedinUser[user.sName]=1
   else
      user:SendPM(Bot,"[CanCerbero]?\r\nWe only allow DC++ (http://dcplusplus.sourceforge.net/) or oDC++ (http://gempond.com/odc/) in this hub, so go there and download one of them. Disconnecting.....")
      LoggedinUser[user.sName]=nil
      user:Disconnect()
   end
end

NightLitch

here try this one:

function CheckPlusPlus(user) 
	if strfind(user.sMyInfoString,"<++") or strfind(user.sMyInfoString,"
//NL

bsalsa

cool its working but also bcdc can go in  :(
is ther a way i can block the other clients ?
thank you

plop

QuoteOriginally posted by bsalsa
cool its working but also bcdc can go in  :(
is ther a way i can block the other clients ?
thank you
bcdc++ has the same tag as dc++.
and lots of ppl have good reason 2 use that, if they show the limiter in the tag there is absolutly nothing wrong with it.
+ this script blocks the best client there is DCGUI(-qt), the only client which has protection against faking and can't even hide the limiter from the tag.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

bsalsa

I am going to check that out
as i saw the dcfgui has a problem in istalling
you need to install a 3 party visual basic dll + registering in another web site( and you know how much users love to register...)
for now i think the script is good and you are right
thanks for all the guys for their help

plop

QuoteOriginally posted by bsalsa
I am going to check that out
as i saw the dcfgui has a problem in istalling
you need to install a 3 party visual basic dll + registering in another web site( and you know how much users love to register...)
for now i think the script is good and you are right
thanks for all the guys for their help
it needs a developers trail edition from QT (not quicktime).
for linux/bsd this is free but for windows they ask money.
you can expect troubles if you use the latest version of QT, but it works fine if you install that and grab the dll in question from an earlyer version.
for more info you can check the dcgui forum.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

bsalsa

i guess you are right
i am gona try it now
thanks

SMF spam blocked by CleanTalk