kick users with no info tag

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
MrCrowley
Posts: 18
Joined: 2003-09-12 07:46
Location: UK

kick users with no info tag

Post by MrCrowley » 2003-09-22 04:38

Hi i asked in the PtokaX lua forum and noone seemed able to answer.
I want to kick all clients that that don't send their info tag to the hub when they log in... The only script i could find at the lua forum kicks all clients that tag doesn't begin with ++

This won't do because i want to allow clients like the new nmdc and DCGUI and any other clients with a proper tag for that matter. Of course i have dc++k to help detecting fakers/slot lockers.

Can anyone help?
thanx.
[DeathNap] Your Entrance To Hells Domain... [url]dchub://doom-metal.deathnap.com[/url]
Metalheads only and movies. 2gb/2 slots min.

MrCrowley
Posts: 18
Joined: 2003-09-12 07:46
Location: UK

Post by MrCrowley » 2003-09-22 04:39

oops forgot to say hub is PtokaX Test drive 4
[DeathNap] Your Entrance To Hells Domain... [url]dchub://doom-metal.deathnap.com[/url]
Metalheads only and movies. 2gb/2 slots min.

Gasman1015
Posts: 184
Joined: 2003-05-26 11:29
Location: UK

Post by Gasman1015 » 2003-09-22 09:30

Always remember you're unique, just like everyone else.

MrCrowley
Posts: 18
Joined: 2003-09-12 07:46
Location: UK

Post by MrCrowley » 2003-09-22 10:21

Yup thats the script i was reffering to... it kicks all clients whose tag doesn't begin with ++ as i mentioned.

I only want to kick clients with no tag at all.
[DeathNap] Your Entrance To Hells Domain... [url]dchub://doom-metal.deathnap.com[/url]
Metalheads only and movies. 2gb/2 slots min.

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Post by TheNOP » 2003-09-22 12:22

MrCrowley wrote:Yup thats the script i was reffering to... it kicks all clients whose tag doesn't begin with ++ as i mentioned.

I only want to kick clients with no tag at all.
this script will bloc old nmdc and DCGUI with tag disable.
but should not bloc nmdc2... or did i miss something about nmdc2 tag ?
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

MrCrowley
Posts: 18
Joined: 2003-09-12 07:46
Location: UK

Post by MrCrowley » 2003-09-22 12:56

Sedulus from that thread:
note that this one will kick most non-nmdc clients that do not have "<++ V:" in the tag
Also just looking at the script would suggest just that.
That it searches for clients with "<++ V:" in the tag and that any client without a dc++ tag gets kicked

Of course i'm not a scripter... i could be wrong ;)
[DeathNap] Your Entrance To Hells Domain... [url]dchub://doom-metal.deathnap.com[/url]
Metalheads only and movies. 2gb/2 slots min.

Kenneth-Chile
Posts: 80
Joined: 2003-03-21 10:17
Location: Concepcion, Chile.

Post by Kenneth-Chile » 2003-10-07 16:29

Code: Select all

 If Len(sCurData) > 0 Then
  If left(sCurData, 7) = "$MyINFO" then
    If InStr(sCurData, "<++ V:") = 0 And InStr(sCurData, "<DCGUI") = 0 then
  curUser.PrivateMessage CStr(sBotName), curUser.sName & ": Only DC++/oDC/DCGUI Tagged client allowed-"
          frmHub.DoEventsForMe
          curUser.Disconnect
      End If
  End If
End If

For allowing NMDC 2.0 add this in the IF Instruction:

Code: Select all

And InStr(sCurData, "NMDCv2.0")
I really don't remember the NMDC2.0 tag. :wink:
In Theory, there is no difference between Theory and Practice. In Practice, there is.

Locked