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
kick users with no info tag
[DeathNap] Your Entrance To Hells Domain... [url]dchub://doom-metal.deathnap.com[/url]
Metalheads only and movies. 2gb/2 slots min.
Metalheads only and movies. 2gb/2 slots min.
-
- Posts: 184
- Joined: 2003-05-26 11:29
- Location: UK
this script will bloc old nmdc and DCGUI with tag disable.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.
but should not bloc nmdc2... or did i miss something about nmdc2 tag ?
Also just looking at the script would suggest just that.Sedulus from that thread:
note that this one will kick most non-nmdc clients that do not have "<++ V:" in the tag
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.
Metalheads only and movies. 2gb/2 slots min.
-
- Posts: 80
- Joined: 2003-03-21 10: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 If
For allowing NMDC 2.0 add this in the IF Instruction:
Code: Select all
And InStr(sCurData, "NMDCv2.0")
In Theory, there is no difference between Theory and Practice. In Practice, there is.