Tags
 

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

Tags

Started by Scooby_Doo, 29 May, 2004, 12:07:13

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Scooby_Doo

hi there all
a script for people that log into the room - but with no TAGs as to what software they are using as cant tell with no tag!!!

plop

try dc++k CDM, that can detect there client even if they don't show a 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 <----<<

Herodes

I found these lines in PtokaX.ini
...
[RulesAndFilters]
DenyDCPP=0
DenyNMDC=0
DenyDCPPNoTag=0                   < -- would this work ok and troublefree for this matter ?
OpsMustObeyPermissions=0
...

Sudds

The deny no tag just doesnt let u in without a tag however most clients will fake a tag and also most mac clients dont use tags.
Sudds

plop

QuoteOriginally posted by Sudds
The deny no tag just doesnt let u in without a tag however most clients will fake a tag and also most mac clients dont use tags.
Sudds
only nmdc V1 for the mac doesn't have a tag, dcgui-qt and nmdc V2 have a 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 <----<<

Shurlock

#5
Perhaps the following little script will do the job for you as it works for me.
Of course: replace ####### with your hubname.

code:
---------------------------------
-- TAG or disconnect
-- By: Shurlock
-- Logs users without tag in folder scripts/text and disconnects

file_notag = "text/notag.txt"

function NewUserConnected(curUser)
   if not strfind(curUser.sMyInfoString,"<++") then
          JotItDown(curUser)
          curUser:SendPM("Admittance to ######## demands a description tag. You will be disconnected.")
          curUser:Disconnect()
  end
end

function JotItDown(curUser)
   appendto(file_notag)
   write("\n"..date("%d").."-"..date("%m").."-"..date("%y").."\tUsername: "..curUser.sName.." ")
   writeto()
end
-------------------------------

If it's raining and your roof leaks, fix the roof. DON'T try to stop the rain!!

plop

QuoteOriginally posted by Shurlock
Perhaps the following little script will do the job for you as it works for me.
Of course: replace ####### with your hubname.

code:
---------------------------------
-- TAG or disconnect
-- By: Shurlock
-- Logs users without tag in folder scripts/text and disconnects

file_notag = "text/notag.txt"

function NewUserConnected(curUser)
   if not strfind(curUser.sMyInfoString,"<++") then
          JotItDown(curUser)
          curUser:SendPM("Admittance to ######## demands a description tag. You will be disconnected.")
          curUser:Disconnect()
  end
end

function JotItDown(curUser)
   appendto(file_notag)
   write("\n"..date("%d").."-"..date("%m").."-"..date("%y").."\tUsername: "..curUser.sName.." ")
   writeto()
end
-------------------------------


ever notiched that not all tags start with <++ ??
your script is dicriminating all non dc++ clients. lol
beside that the + is magic so you would need 2 excape it, currently the script looks for 1 or more < and then it looses it's way.
what 2 do with the 2nd +.
ptokax can check if a client has a tag and disconnect if not, just like herodes notiched.

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 <----<<

Shurlock

#7
Hi Plop,


Thanks for a reply that really woke me up!
As I am but a 'newby', I have a few questions though...

your script is dicriminating all non dc++ clients. lol    

I wonder if (a lot of!!) people realize which clients are trust-worthy and which not. I personally have lost sight in the world of 'faking' clients. So... within my hub only DC++, oDC and DCGUI are allowed. Wrong?

beside that the + is magic so you would need 2 excape it, .......

My thought was that, if delimited, it would be searched as a string, thus not acting as part of a syntax. Wrong?

The PtoKax option is something I had not noticed and will be applying as of now.  (I'm ashamed for not noticing!)

Hope you'll not be angry with me for mistakes that are made by 'beginners'.

I would appreciate  you responding  to this, as I honestly wish to learn!

Thanks in advance!

Regards!!!!
If it's raining and your roof leaks, fix the roof. DON'T try to stop the rain!!

SMF spam blocked by CleanTalk