...thats interesting yes, something exactly like that. On the server I frequent, NickServe likes for you to auth a certain way and it is peculiar, if you were in an irc client, you'd type:

/msg nickserv@services.crazylogic.org AUTH yourpassword

Getting the bot to send that message (as a raw irc message) at the proper time, man ... I'll tell you, it was frustrating.

Your parser interests me, too. I especially like the:

$line =~ /^:(.*)!(.*) PRIVMSG (.*) :(.*?)--(.*).$/;

Because occasionally NOTICES and other such things get sent out, and the parser I wrote will do it's thing on those as best it can but I still get "Uninitialized value ... " warnings when it happens sometimes. I could use that, and build it into the parse_line() method, to check whether it is a PRIVMSG type line, or a NOTICE or something else and then have the method parse the line accordingly.

...if that makes any sense (I've been at work all day & I'm tired :))

Thank you, I think I'll work on that this weekend.

Regards
SoupNazi

Visit us at irc.crazylogic.org #apartment411
D A R K E M P I R E s u b n e t w o r k

In reply to Re^4: A Quick OO Module for parsing lines from an IRC connection by SoupNazi
in thread A Quick OO Module for parsing lines from an IRC connection by SoupNazi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.