online IP checker
 

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

online IP checker

Started by Alexinno, 28 August, 2007, 17:40:45

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Alexinno

hello guyz , i can't find any online IP checker script, is there any ? , if yes could somebody point me in the right direction
I would like something like  !whoip IP and output if it is any user with that IP

thx

CrazyGuy

Userbekcisi should be your friend when it comes to this  8)
Although it may need an update

Cêñoßy†ê

Try this ;)

ChatArrival = function(user,data)
	local _,_,cmd,what = data:find("%b<>%s+(%S+)%s(.*)|")
	if cmd == "!whoip" then
		if what and what:find("%d+%.%d+%.%d+%.%d+") then
			if Search(what) == nil then
				user:SendData(frmHub:GetHubBotName(),"No user logged with that IP")
			else
				user:SendData(frmHub:GetHubBotName(),Search(what))
			end
		else
			user:SendData(frmHub:GetHubBotName(),"Invalid IP string (example string 127.0.0.1)")
		end
		return 1
	end
end

Search = function(what)
	for _,who in pairs(frmHub:GetOnlineUsers()) do
		if who.sIP == what then
			return("Found user: "..who.sName.." with ip "..what)
		end
	end
end
Powered By Leviathan™ 2nd Generation v. 1.9

Alexinno

10q C??o?y?? for the script ,it's working good :)

TTB

if what and what:find("%d+%.%d+%.%d+%.%d+") then


Is this new? Shouldn't it be:

if what and string.find(what,("%d+%.%d+%.%d+%.%d+")) then


Didn't script for a while, but thisone got my attention :-)
TTB

(? ?.??.-> Admin @ Surfnet hubs <-.??.???)

Thor

Since LUA 5.11 they can be used, easier and faster. string.sub(smth,1,4) == smth:sub(1,4), string.gsub(smth,"%W","") == smth:gsub("%W",""), and so on. less parameter, faster code :)

TTB

That's great! Thanx for your explenation.   ;D
TTB

(? ?.??.-> Admin @ Surfnet hubs <-.??.???)

SMF spam blocked by CleanTalk