Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: RFC: Tutorial - IRC Programming In Perl

by moritz (Cardinal)
on Aug 30, 2007 at 06:34 UTC ( #636007=note: print w/replies, xml ) Need Help??


in reply to RFC: Tutorial - IRC Programming In Perl

I like your Tutorial/RFC. I wrote two bots lately, and some of my work would have been easier if I had such a comprehensive collection of links.

I haven't read all your links, but something seems to miss: there is now description of how to handle different charsets in IRC. This is something that can be a pain to handle, and the documentation mostly ignores the issue .

Net:IRC and POE::Component::IRC don't mention it, Bot::BasicBot offers to set one possible encoding, which is not always sufficient.

Also I did try to write a logging script with irssi, but I couldn't find a reference manual for Irssi.pm. If there is such a documentation it would be worthy to point to it directly, maybe I'm not the only one who is too dumb to find it.

  • Comment on Re: RFC: Tutorial - IRC Programming In Perl

Replies are listed 'Best First'.
Re^2: RFC: Tutorial - IRC Programming In Perl
by mmmmtmmmm (Monk) on Aug 30, 2007 at 07:39 UTC
    moritz --

    I have done a bit of searching, but could not find either of the things you requested. I will keep looking for more information on using different character sets and Irssi.pm, and will post anything I find that is good quality.

    Anyhow, I did find a new link to a "Perl Scripting Reference" for irsii, and added it to the Tut.

    Thanks for the input,
    mmmmtmmmm
      mmmmtmmmm: POE::Component::IRC's Logger plugin handles encodings the way recent mIRC (and irssi/xchat if configured right) versions do. I suggest you take a look at the source code.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://636007]
help
Chatterbox?
[atcroft]: james28909: That particular questions was a bit of trick, actually (depending on the country you are in). More interesting is, if you are trying to subtract from an epoch time, for instance, you might have to consider when/if DST occurs for a location,
[atcroft]: because you may have to adjust the number of seconds you change from an epoch from 86400 (not to mention leap seconds)....
[atcroft]: james28909: Although if your program is using a database, you might be able to "pass the buck" to the database and ask it to do the date change for you....
[stevieb]: ++ atcroft

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2017-04-29 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.