Cool jonesy44.
However, like you said, it doesn't necessarily work everytime.
For example, if I were to try to find the country for a non dns-resolved host (let's say a numbered ip), or if it's a valid vhost, there's going to be some problems.
-
KiRBY is jake@216.86.155.19 Something to prove; nothing to lose
KiRBY using .quakenet.org QuakeNet IRC Server
kirby End of /WHOIS list.
- /Locate: Unable to retrieve host from kirby. Make sure they are online
Shinu is shinu@packetstorm.in Domid Ilbnc
Possible locations for Shinu: India [.in]
Shinu on @#Taco #PerlBot @#YT +#geeking @#YTBots +#TwitterBots @#GameBots @#pwnt @#Bet
Shinu using .quakenet.org QuakeNet IRC Server
Shinu is authed as Shinu
Shinu End of /WHOIS list.
But that's just unavoidable without socket-use.
However, I suggest one thing:
* /Locate: Unable to retrieve host from <nick>. Make sure they are online
They technically ARE online, but it can't find the country from the list in the script; you might want to add another "if" to the script.
Otherwise, very nice.