Guildencrantz has asked for the wisdom of the Perl Monks concerning the following question:
Okay, I'm currently working on a IRC bot which needs to determine the IP of somebody sending a private message. Basically I want to have the user send a private message "activateIP" and have the BOT determine that users IP and then record it to a file. I have all the script setup (because this BOT is an extension of an HTML/CGI setup I have) except I can't figure out how to get that IP.
I have poured over the little documentation for NET::IRC::Event.pm and I have read the PM itself several times. I see that there is a "host" sub for returning the host, but not one for returning the IP.
I know that IRC keeps track of the IP, but how do I access this information?
~~Guildencrantz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting a user IP from NET::IRC
by JayBonci (Curate) on Apr 17, 2002 at 07:15 UTC | |
by Guildencrantz (Sexton) on Apr 17, 2002 at 07:26 UTC | |
|
Re: Getting a user IP from NET::IRC
by giulienk (Curate) on Apr 17, 2002 at 09:46 UTC |