-- PtokaX Lua 5 version by PPK
owneremail = PLACE_OWNER_EMAIL_HERE
function UnknownArrival(curUser, sData)
--// simple $BotINFO implementation //--
if string.sub(sData, 1, 8) == "$BotINFO" then
curUser:SendData("$HubINFO "..frmHub:GetHubName().."$"..frmHub:GetHubAddress()..frmHub:GetHubPort()..
"$"..fmrhub:GetHubDescr().."$"..frmHub:GetMaxUsers().."$"..frmHub:GetMinShare().."$PtokaX$"..owneremail)
return 1
end
end
plop
Fixed version (thx Alexandros for report).
-- PtokaX Lua 5 version by PPK
owneremail = "PLACE_OWNER_EMAIL_HERE"
function UnknownArrival(curUser, sData)
--// simple $BotINFO implementation //--
if string.sub(sData, 1, 8) == "$BotINFO" then
local minshare = frmHub:GetMinShare()*1024*1024
curUser:SendData("$HubINFO "..frmHub:GetHubName().."$"..frmHub:GetHubAddress()..":"..frmHub:GetHubPort().."$"..frmHub:GetHubDescr()..
"$"..frmHub:GetMaxUsers().."$"..minshare.."$"..frmHub:GetMinSlots().."$"..frmHub:GetMaxHubs().."$PtokaX$"..owneremail)
return 1
end
end
Wouldn't it help to "stitch" this in PtokaX ?
what does this script really do ?(
And is the ownermail in the end if the sendData really needed ?(
This registers the hub on hublist.org list when the pinger enters. Original version by Gadget. And the email is unneeded.
QuoteOriginally posted by blackwings
what does this script really do ?(
And is the ownermail in the end if the sendData really needed ?(
Check BotINFO/HubINFO (http://dcplusplus.sourceforge.net/wiki/index.php/BotINFO%20%26%20HubINFO%20commands) command description :]