Re: Funny issue with libOPM

David Leadbeater <[email protected]> Thu, 12 Jul 2007 13:47:31 +0100
Newsgroups gmane.network.irc.bopm
Message-ID <[email protected]>
Hi,

Jeff Katz wrote:
> Hello,
> 
> I wasn't quite sure where to turn to, but I'm having a funny problem
> with libopm and perl. I have a cgi script setup where it takes the
> querystring and checks it for proxies - this works fine - but when I
> take the same script and integrate it with a perl irc bot (using
> net::irc), it appears the callbacks aren't being called.
> 
[..]
> $scan->config(OPM->CONFIG_SCAN_IP, "irc.blitzed.org");

That can't be a hostname, it needs to be an IP (well, it might work
for HTTP like that, but not SOCKS).

[..]
> $irc->start();

You're not calling $scan->cycle at any point, you need to do this
somehow. (Maybe use a Net::IRC timer to call it every 100ms or so?).

BTW, if this is actually being used on Blitzed maybe we could add
some additional ports to our BOPMs, we haven't updated their config
for awhile..

David