[LUA5] touble with botinfo script
 

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

[LUA5] touble with botinfo script

Started by Alexandros, 01 March, 2005, 17:42:13

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Alexandros

i have this script in lua5 (modification from PPKs one):
owneremail "alexx@gmail.com"
SHARE 629145600
VERSION 
"PtokaX 0.3.3.0"
MAXHUB 10
MINSLOTS 
3
HubAddress 
frmHub:GetHubAddress()..":"..frmHub:GetHubPort()

function 
UnknownArrival(curUsersData)
	
--
// simple $BotINFO implementation //--
	
if 
string.sub(sData18) == "$BotINFO " then
	
	
urUser:SendData("$HubINFO "..frmHub:GetHubName().."$"..HubAddress.."$"..fmrhub:GetHubDescr().."$"..frmHub:GetMaxUsers().."$"..SHARE.."$"..MINSLOTS.."$"..frmHub:GetMaxHubs().."$"..VERSION.."$"..owneremail)
	
	
return 
1
	
end
end


The {hublistpiger} enters, stay 2 minutes in my hub, go out and in hublist my hub is now listed as "timeout" anyone knows where the error is?
thanks

[UK]Madman

Id guess...


    if string.sub(sData, 1, 8) == "$BotINFO "  then

        curUser:SendData("$HubINFO "..frmHub:GetHubName().."$"..HubAddress.."$"..fmrhub:GetHubDescr().."$"..frmHub:GetMaxUsers().."$"..SHARE.."$"..MINSLOTS.."$"..frmHub:GetMaxHubs().."$"..VERSION.."$"..owneremail)


the $botinfo seems to have a space on the end inside the "'s

the curUser:SendData had a c missing

Alexandros

QuoteOriginally posted by [UK]Madman
Id guess...


    if string.sub(sData, 1, 8) == "$BotINFO "  then

        curUser:SendData("$HubINFO "..frmHub:GetHubName().."$"..HubAddress.."$"..fmrhub:GetHubDescr().."$"..frmHub:GetMaxUsers().."$"..SHARE.."$"..MINSLOTS.."$"..frmHub:GetMaxHubs().."$"..VERSION.."$"..owneremail)


the $botinfo seems to have a space on the end inside the "'s

the curUser:SendData had a c missing
that space is in the original script and  "C" is a copy/paste error, i have that C in my script.  :S

Typhoon

try without the extra space i use it without space in my script with no problems


Typhoon?



Alexandros

i'll try that way...any other sugestions?

thanks again

Alexandros

hi, is there something in the new version of ptokax that "dislikes" the $BotINFO command? i have this in debug

[21:34] {HubListPinger} (82.141.122.173) > $BotINFO {HubListPinger} //www.hublist.org hublist pinger for http://www.hublist.org/PublicHubList.config.bz2|
[21:34] x User removed: {HubListPinger} (Socket 4220)

SMF spam blocked by CleanTalk