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.
kick users with no info tag
Moderator: Moderators
-
MrCrowley
- Posts: 18
- Joined: 2003-09-12 12:46
- Location: UK
kick users with no info tag
[DeathNap] Your Entrance To Hells Domain... dchub://doom-metal.deathnap.com
Metalheads only and movies. 2gb/2 slots min.
Metalheads only and movies. 2gb/2 slots min.
-
MrCrowley
- Posts: 18
- Joined: 2003-09-12 12:46
- Location: UK
oops forgot to say hub is PtokaX Test drive 4
[DeathNap] Your Entrance To Hells Domain... dchub://doom-metal.deathnap.com
Metalheads only and movies. 2gb/2 slots min.
Metalheads only and movies. 2gb/2 slots min.
-
Gasman1015
- Posts: 184
- Joined: 2003-05-26 16:29
- Location: UK
-
MrCrowley
- Posts: 18
- Joined: 2003-09-12 12:46
- Location: UK
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.
I only want to kick clients with no tag at all.
[DeathNap] Your Entrance To Hells Domain... dchub://doom-metal.deathnap.com
Metalheads only and movies. 2gb/2 slots min.
Metalheads only and movies. 2gb/2 slots min.
-
TheNOP
- Posts: 275
- Joined: 2003-07-08 02:41
- Location: Quebec
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 ?
-
MrCrowley
- Posts: 18
- Joined: 2003-09-12 12:46
- Location: UK
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... dchub://doom-metal.deathnap.com
Metalheads only and movies. 2gb/2 slots min.
Metalheads only and movies. 2gb/2 slots min.
-
Kenneth-Chile
- Posts: 80
- Joined: 2003-03-21 15:17
- Location: Concepcion, Chile.
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 IfFor 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.
In Theory, there is no difference between Theory and Practice. In Practice, there is.
Who is online
Users browsing this forum: Google [Bot] and 0 guests