in reply to Re^3: A Quick OO Module for parsing lines from an IRC connection
in thread A Quick OO Module for parsing lines from an IRC connection
...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 yourpasswordGetting 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
|
|---|