Just FYI, the POE::Component::IRC module on CPAN will do this all for you.
On 7/3/05, Ing. Branislav Gerzo <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] [dwt], on Sunday, July 3, 2005 at 15:04
> (+0100) wrote about:
>
>
> dwt> : PRIVMSG <#channelname> :
> dwt> At the moment I am using the if st
[EMAIL PROTECTED] [dwt], on Sunday, July 3, 2005 at 15:04
(+0100) wrote about:
dwt> : PRIVMSG <#channelname> :
dwt> At the moment I am using the if statement:
dwt> if($input =~ /m*PRIVMSG*:/i)
dwt> , but it is never true.
if message looks like this:
:somewhere.host.com PRIVMSG #channel : message
Hi,
I started with perl not long ago. I am currently coding an IRC bot.
I have all the connect code working fine, and it sits on the channel.
At the moment, I am trying to make it respond to commands. I am
having trouble parsing the lines recieved from the IRC server - they
take the form:
: P