For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > February 2005 > Net::IRC Woes









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Net::IRC Woes
Davidhope69@hotmail.com

2005-02-17, 4:00 pm

Hello all,

I've got a quick question about the Net:IRC module for perl, for some
strange reason it will never connect to a server (even when using the
provided examples), a message is echoed out and it continues to run but
to no avail:

-----[START]-----
Can't connect to irz.blitzed.org:6667! at
/usr/lib/perl5/vendor_perl/5.8.5/Net/IRC.pm line 203
-----[END]-----

I'm really starting to run out of ideas here, I've been using php for a
fair while and figured I'd take a quick pe at what modules perl had
to offer so as to replace php as my langauge of choice for CLI stuff
anyway, here's the code to the most basic net:irc example which I can't
get to work:

-----[START]-----
#!/usr/bin/perl
use Net::IRC;
$irc = new Net::IRC;
$conn = $irc->newconn (
Nick => 'DaveTEST',
Server => '192.168.1.9'
);
$irc->start;
-----[END]-----

I've tried the above with perl 5.8.2 and 5.8.5, getting the same error
each time :/ - Any suggestions would be greatley appreciated.

Thomas Wittek

2005-02-17, 8:56 pm

> $conn = $irc->newconn (
> Nick => 'DaveTEST',
> Server => '192.168.1.9'
> );


Are you sure that you want to connect to an IRC server in your local
area network (192.168.1.9)?

-Thomas
Davidhope69@hotmail.com

2005-02-17, 8:56 pm

Yep, I run an ircd on one of my internal development servers. I get the
same error with every server I've tried, irc.blitzed.org, freenode,
Rizon etc etc.

Thomas Wittek

2005-02-17, 8:56 pm

Davidhope69@hotmail.com schrieb:
> Yep, I run an ircd on one of my internal development servers. I get the
> same error with every server I've tried, irc.blitzed.org, freenode,
> Rizon etc etc.


Hm, maybe you could try POE::Component::IRC.
I've heard a lot good of this one.

-Thomas
Jonathan Stowe

2005-02-18, 8:56 am

Davidhope69@hotmail.com wrote:
> Yep, I run an ircd on one of my internal development servers. I get the
> same error with every server I've tried, irc.blitzed.org, freenode,
> Rizon etc etc.
>


Are you sure that you are able to connect to these hosts from your
machine on port 6667 at all? Have you tried to check it with (e.g)
telnet?

/J\
Davidhope69@hotmail.com

2005-02-18, 3:56 pm

Yep, I can connect perfectly. Like I said, I've tried on various hosts
to no avail. I've even tried re-compiling perl with and without
ithreads enabled.

Thomas Wittek

2005-02-21, 3:57 pm

Davidhope69@hotmail.com schrieb:
> Yep, I run an ircd on one of my internal development servers. I get the
> same error with every server I've tried, irc.blitzed.org, freenode,
> Rizon etc etc.


Hm, maybe you could try POE::Component::IRC.
I've heard a lot good of this one.

-Thomas
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com