DCDM (hub supports user ip)
 

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

DCDM (hub supports user ip)

Started by (=CyberPimp=), 09 August, 2004, 09:38:39

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

(=CyberPimp=)

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

plop

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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

(=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.

plop

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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

(=CyberPimp=)

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

SMF spam blocked by CleanTalk