Hi all,,
Because i've spent a >lot of time< on it (lol),... i post the 'good' way to parse the info to get the correct connection type,...
-----
s,e,connection = strfind(data,"[$]+[^$]+[$]+[^$]+[$]+[^$]+[$]+([^$]+)")
-----
Because before,, i get some beautifull:
---
connection = "DSL"
---
loOol
Enjoy it,, :)
l8tr,, ;)
Hmm,,,
Sometime,, with Dc clients,, it seems it wasn't 'perfect',...
That one seems to work better,,
---------
s,e,connection = strfind(data,"[$]+[^$]+[$]+[^$]+[$]+[^$]+[$]+([^$]+)")
if connection ~= nil then
if strfind(connection,"") then
vstart = strfind(data,connection)
vlenght = strlen(connection)-1
realconnection = strsub(data,vstart,vlenght)
s,e,realconnection = strfind(connection,"(%S+)")
connection = realconnection
end
end
---------
l8tr,,