This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Resolve hostname to country on join

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
j
janipewter
Voice
Posts: 16
Joined: Sun Jan 22, 2006 8:59 pm

Resolve hostname to country on join

Post by janipewter »

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: Select all

<nick> <(IP)> resides in <location in bold>
So for example:
(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).
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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: Select all

 tag when posting logs, code
j
janipewter
Voice
Posts: 16
Joined: Sun Jan 22, 2006 8:59 pm

Post by janipewter »

Anyone?
Post Reply