in reply to Getting a user IP from NET::IRC

IRC oftentimes masks the direct IP or sometimes will only give you the hostname. If you don't see it in the docs, try converting to the IP address with Net::DNS::Resolver. It looks like the Net::IRC::Event object has a host() that returns (or sets) the hostname for each item that you get. That should work fine.

Also event 307 is marked as 'userip' and is listed as an "Undernet extension". You might want to look at that. Cheers.

    --jb

Replies are listed 'Best First'.
Re: Re: Getting a user IP from NET::IRC
by Guildencrantz (Sexton) on Apr 17, 2002 at 07:26 UTC
    I saw that bit about event 307, but I couldn't figure out how to work with it. I tried writting a sub like the host sub using 'userip' instead of 'host', but I couldn't get it to work.

    I'll try using host and resolving it if I can't figure anything else out.

    ~~Guildencrantz