Help on system fields
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Help on system fields

Started by xjr13sp, 03 March, 2004, 17:46:17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xjr13sp

Hi,

Does anyone could test this little LUA script and report me why I don't have all the system fileds returns?
Quotefunction DataArrival(user, data)

if (strsub(data,1,4) == "$Key") then
 local _,_,Var = strfind(data, "(.*)")
 SendPmToNick("xjr13sp", "Bot", Var)

elseif (strsub(data,1,13) == "$ValidateNick") then
 local _,_,Var = strfind(data, "(.*)")
 SendPmToNick("xjr13sp", "Bot", Var)

elseif (strsub(data,1,7) == "$MyPass") then
 local _,_,Var = strfind(data, "(.*)")
 SendPmToNick("xjr13sp", "Bot", Var)

elseif (strsub(data,1,8) == "$Version") then
 local _,_,Var = strfind(data, "(.*)")
 SendPmToNick("xjr13sp", "Bot", Var)

elseif (strsub(data,1,9) == "$ClientID") then
 local _,_,Var = strfind(data, "(.*)")
 SendPmToNick("xjr13sp", "Bot", Var)

elseif (strsub(data,1,8) == "$BlackDC") then
 local _,_,Var = strfind(data, "(.*)")
 SendPmToNick("xjr13sp", "Bot", Var)

elseif (strsub(data,1,12) == "$GetNickList") then
 local _,_,Var = strfind(data, "(.*)")
 SendPmToNick("xjr13sp", "Bot", Var)

elseif (strsub(data,1,7) == "$MyINFO") then
 local _,_,Var = strfind(data, "(.*)")
 SendPmToNick("xjr13sp", "Bot", Var)

elseif (strsub(data,1,8) == "$GetINFO") then
 local _,_,Var = strfind(data, "(.*)")
 SendPmToNick("xjr13sp", "Bot", Var)

end
end
With dc++ client, I only have $MyINFO contain in a PM, with NMDC1 client I only have the contain of $Version, with a DC++k CMD I only have the contain of $MyINFO .... So I suppose that I do something wrong but I don't know what :-(

NightLitch

I have a question:

Can you retrive any data from:

$BlackDC and $ClientID

??
//NL

xjr13sp

It is that I would like to know  :D  and try to do...

NotRabidWombat

From scripting.txt
QuotefrmHub:EnableFullData(n)
  n = 1 or 0 (1-enable,0-disable)
  enables/disables passing of ALL incomming data to current script
  NOTE: may have significant influence on hub's performance. Use it wisely!

-NotRabidWombat


I like childish behavior. Maybe this post will be deleted next.

SMF spam blocked by CleanTalk