Created
May 17, 2013 21:06
-
-
Save DemmyDemon/5601964 to your computer and use it in GitHub Desktop.
Just a little irssi script to add a marker line to the chat.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use Irssi; | |
our $VERSION = 0.1; | |
our %IRSSI = ( | |
authors => 'Fredrik "Demonen" Vold', | |
contact => '[email protected]', | |
name => 'mark', | |
description => 'Just adds a timestamped marker line to the chat buffer', | |
lisence => 'Use it for whatever you want, but at your own risk. DILLIGAF?', | |
); | |
sub addmarker { | |
my $marker = shift; | |
my $awin = Irssi::active_win(); | |
if (!length($marker)){ | |
$marker = 'Mark'; | |
} | |
$awin->print("----> $marker <----",MSGLEVEL_CLIENTCRAP); | |
} | |
Irssi::command_bind('mark','addmarker'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment