| View previous topic :: View next topic |
| Author |
Message |
janipewter Voice
Joined: 22 Jan 2006 Posts: 16
|
Posted: Wed Feb 01, 2006 12:53 pm Post subject: Resolve hostname to country on join |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Feb 02, 2006 12:37 am Post subject: |
|
|
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 |
|
 |
janipewter Voice
Joined: 22 Jan 2006 Posts: 16
|
Posted: Thu Feb 09, 2006 3:17 pm Post subject: |
|
|
| Anyone? |
|
| Back to top |
|
 |
|