I'm looking for some new client tags. I already have these = DCGUI,zDC++,StrongDC++,Phantom DC++,iDC++,MS++V,DC++K CDM,rmDC++,DC@fe++,DC++ DCDM,BCDC++,nDC++,CZDC++,ReverseConnect.
example of information that I want to other clients =
Client Name = iDC++
Begining/sequence of the tag: Version info = V:(0.%d+)
Good idea.. Please in this Format as complete as possible
$MyINFO $ALL Test <.P>Tum Di Dum<++ V:0.306,M:A,H:0/1/5,S:4>
$MyINFO $ALL Test <++ V:0.306,M:A,H:0/1/5,S:4,O:4>
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test <++ V:0.306,M:P,H:1/0/0,S:3>
$MyINFO $ALL Test <++ V:0.251,M:A,H:0/1/1,S:1>
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test [URL]http://dc.ketelhot.de[/URL]
$MyINFO $ALL Test <++ V:0.25,M:A,H:0/0/2,S:1>
$MyINFO $ALL Test
$MyINFO $ALL Test <[X]DC V:0.4034,M:A,H:1/2/4,S:2>
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
Optimus, could you check if this is correct =
This is what I made of it ={"{"{"{"{"{"<[X]DC","V:(0.%d+)","[X]DC"},
{"{"{"{"{"{"{"{"I used these from your post before (not all of them)=
$MyINFO $ALL Test
$MyINFO $ALL Test <++ V:0.25,M:A,H:0/0/2,S:1>
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test <[X]DC V:0.4034,M:A,H:1/2/4,S:2>
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
$MyINFO $ALL Test
You could use this for example to check the tags. And i changed a couple of tags. To make it all work.
Btw in this way you could easly add more tags and check if they work. After that you could do your own thing and build it back in your script.
["
["
and some other small stuff
sBot = "=TumDiDum="
function DataArrival(user, data)
if (strsub(data, 1, 1) == "<" ) then
data=strsub(data,1,strlen(data)-1)
s,e,cmd=strfind(data, "%b<>%s+(%S+)")
if (cmd == "!test") then
local disp,nr = "\r\n",0
for i = 1,getn(tTest) do
for sClient,sTag in tClients do
if strfind(tTest[i], sClient) then
disp=disp..i..". String: "..tTest[i].." - Client: "..sTag.."\r\n" nr = i
end
end
user:SendData(sBot, disp.."\r\nTotal Strings: "..getn(tTest)..", Passed Strings: "..nr)
end
end
end
end
tClients = {
["["zDC%+%+"]="zDC++",
["["<%.%P>"]="Phantom DC++",
["["["["["DC@fe%+%+"]="DC@fe++",
["["reverseconnect.sf.net"]="ReverseConnect",
["www.RevConnect.com"]="ReverseConnect",
["["["["["["<[X]DC"]="[X]DC",
["["["["["["["["}
tTest = {
"$MyINFO $ALL Test <.P>Tum Di Dum<++ V:0.306,M:A,H:0/1/5,S:4>",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test <++ V:0.306,M:P,H:1/0/0,S:3>",
"$MyINFO $ALL Test <++ V:0.251,M:A,H:0/1/1,S:1>",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test <++ V:0.25,M:A,H:0/0/2,S:1>",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test <[X]DC V:0.4034,M:A,H:1/2/4,S:2>",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
"$MyINFO $ALL Test ",
--"$MyINFO $ALL Test [URL]http://dc.ketelhot.de[/URL]",
--"$MyINFO $ALL Test <++ V:0.306,M:A,H:0/1/5,S:4,O:4>",
}
Thanx Optimus, that's a good advice :D
ehm, but what I'm orignally meant to ask, was if I had wrote the right version code (ex=V:([^,]+).) for each client???
You could use my code and change it so it checks the minversion to. Then it will display the result when you do !test
You will quickly see if minversions are right or not
I had in mind to use the tas for my deny clients script, so I won't check min version of a client.
Maybe I am a little bit stupid here>_<, but I don't see how this script should show if I should use "V:([^,]+)." or "V:(0.%d+)"
or something else.(check my Deny Clients Script and you will what I'm looking for)
This is what your script wrote out. All it did was to copy the lines from table tClients,
put a number infront and in the end write > - Client: oDC. [21:36] <=TumDiDum=>
1. String: $MyINFO $ALL Test <.P>Tum Di Dum<++ V:0.306,M:A,H:0/1/5,S:4> - Client: Phantom DC++
2. String: $MyINFO $ALL Test - Client: oDC
3. String: $MyINFO $ALL Test - Client: DCGUI
4. String: $MyINFO $ALL Test - Client: DC:PRO
5. String: $MyINFO $ALL Test - Client: NMDC
6. String: $MyINFO $ALL Test <++ V:0.306,M:P,H:1/0/0,S:3> - Client: iDC++
7. String: $MyINFO $ALL Test <++ V:0.251,M:A,H:0/1/1,S:1> - Client: DC++K CDM
8. String: $MyINFO $ALL Test - Client: rmDC++
9. String: $MyINFO $ALL Test - Client: Strong DC++
10. String: $MyINFO $ALL Test - Client: DCGUI
11. String: $MyINFO $ALL Test <++ V:0.25,M:A,H:0/0/2,S:1> - Client: oDC old
12. String: $MyINFO $ALL Test - Client: RDC++
14. String: $MyINFO $ALL Test - Client: YETI++
15. String: $MyINFO $ALL Test - Client: DHDc++
16. String: $MyINFO $ALL Test - Client: MORIA++
17. String: $MyINFO $ALL Test - Client: LDC++
18. String: $MyINFO $ALL Test - Client: SdDC++
19. String: $MyINFO $ALL Test - Client: Chp++
20. String: $MyINFO $ALL Test - Client: TiDc++
21. String: $MyINFO $ALL Test - Client: R2++
Total Strings: 23, Passed Strings: 21
tum di dum, i'm done here. I don't get what you are trying to say to me ;)
It's all fine with me, good luck
Does anyone know the tag description for = FullDC, BlackDC, italian DC and DCTC(DC Text Client)?
see nightlitch script
btw idc:
DCTC: "
fuldc cannot be detected by desc afaik
blackdc has no tag
"V:([^,]+)." -- detects everything after "V:" that is not "," and lasts till one more charwhich isnt included , so u can detect "1.00 RC8" for strongdc
or "V:(0.%d+) -- this detects only numbers
QuoteOriginally posted by bastya_elvtars
"V:([^,]+)." -- detects everything after "V:" that is not "," and lasts till one more charwhich isnt included , so u can detect "1.00 RC8" for strongdc
or "V:(0.%d+) -- this detects only numbers
hmm, latest DCTC version is 0.85.9,
so I think that I should use this then(no V: because I'm not sure if DCTC has it) =
(%d+.%d+.%d+)