Comments on: My First Irssi Script- Binary Timestamps Linux. GNU. Freedom. Fri, 22 Sep 2017 21:25:57 +0000 hourly 1 By: HarleyPig Wed, 30 Aug 2006 15:52:52 +0000 With bitlbee and jabber you can have all kinds of connectivity. And irssi can be setup as a proxy so that you can attach to it from anywhere and have access to your personal setup.

By: Aaron Mon, 28 Aug 2006 16:53:30 +0000 Hehe. Goes to show my inferior n00b skillz when it comes to Perl. I knew there had to be a simple way, I just didn't know how. Oh well, on an updated release, I'll chop it down to the sprintf.

I admit though that now that I know how to hook the Perl scripts in Irssi, I am coming up with all sorts of fun things that I can do. 🙂

By: HarleyPig Mon, 28 Aug 2006 13:23:46 +0000 I don't mean to demean your hard work, but you made it too difficult.

You can get rid of the hour2bin and min2bin subroutines and replace them with the following in the convert_to_binary subroutine:

my $new_time = sprintf "%05b:%06b", ( localtime )[2,1];

And I *never* thought about changing the timestamp format like that, just using the simple MM/DD/YY HH:MM in it's various incarnations. Now that I have the thought in my head I'm thinking of all *kinds* of fun things I can do ...