I need a script so that my hub supports user ip, I?m trying to get ISP check to work on DCDM. It suposed to exist but I can?t find it.
http://www.imperialnet.org/forum/viewtopic.php?t=1109
here you are.
-- enable bcdc++ on testdrive 4 made by tezlo
function Main()
frmHub:EnableFullData(1)
end
function DataArrival(user, data)
if strsub(data, 1, 7) == "$UserIP" then
local s, e, nick = strfind(data, "^%$UserIP (%S+)%|$" )
if nick == user.sName then
user:SendData( "$UserIP "..nick.." "..user.sIP)
elseif user.bOperator then
local tmp = GetItemByName(nick)
if tmp then user:SendData( "$UserIP "..nick.." "..tmp.sIP) end
end return 1
end
end
plop
Tanx, but I still can?t get it to work, don?t know what im doing wrong :baby:
Does it have to be this hard, the client gets the ip so I would think it sholdn?t be hard to get the name of the ISP from the list or is it something more to it.
QuoteOriginally posted by (=CyberPimp=)
Tanx, but I still can?t get it to work, don?t know what im doing wrong :baby:
Does it have to be this hard, the client gets the ip so I would think it sholdn?t be hard to get the name of the ISP from the list or is it something more to it.
this script adds the support for $UserIp 2 ptokax, for the rest you have 2 be on the DCDM site.
but check if you have the geoip file in the folder of DCDM, in some versions of BCDC this was missing so could be the same on DCDM.
but this is just for the country.
plop
Tanx Plop.
I had more probs than that, if someone is haveing the same probs go to http://www.imperialnet.org/forum/viewtopic.php?p=6338#6338