egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Resolve hostname to country on join

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
janipewter
Voice


Joined: 22 Jan 2006
Posts: 16

PostPosted: Wed Feb 01, 2006 12:53 pm    Post subject: Resolve hostname to country on join Reply with quote

Well, I need a script which will get the users host on join (which I guess is easy enough), resolve it to their IP address and then perform a whois lookup or something on it and then announce to the channel

Code:
<nick> <(IP)> resides in <location in bold>


So for example:

Quote:
(16:42:46) —› join: (jps) (~tester251@host-87-74-9-115.bulldogdsl.com)
(16:42:47) (LamestBot) jps (87.74.9.115) resides in United Kingdom


Obviously it would need to ignore users who have masked hosts (like Quakenet's +x mode and some hidden host modes on other ircd's).
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Feb 02, 2006 12:37 am    Post subject: Reply with quote

mapping IP to country ain't that easy

but actually not that difficult, provided you use some pre-formatted data from various registers, see http://ip.ludost.net
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
janipewter
Voice


Joined: 22 Jan 2006
Posts: 16

PostPosted: Thu Feb 09, 2006 3:17 pm    Post subject: Reply with quote

Anyone?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber