Comments on: My First Irssi Script- Binary Timestamps https://pthree.org/2006/08/27/my-first-irssi-script-binary-timestamps/ Linux. GNU. Freedom. Fri, 22 Sep 2017 21:25:57 +0000 hourly 1 https://wordpress.org/?v=4.9-alpha-41547 By: HarleyPig https://pthree.org/2006/08/27/my-first-irssi-script-binary-timestamps/#comment-2983 Wed, 30 Aug 2006 15:52:52 +0000 http://www.pthree.org/2006/08/27/my-first-irssi-script-binary-timestamps/#comment-2983 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 https://pthree.org/2006/08/27/my-first-irssi-script-binary-timestamps/#comment-2947 Mon, 28 Aug 2006 16:53:30 +0000 http://www.pthree.org/2006/08/27/my-first-irssi-script-binary-timestamps/#comment-2947 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 https://pthree.org/2006/08/27/my-first-irssi-script-binary-timestamps/#comment-2942 Mon, 28 Aug 2006 13:23:46 +0000 http://www.pthree.org/2006/08/27/my-first-irssi-script-binary-timestamps/#comment-2942 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 ...

]]>