Skip to content

Instantly share code, notes, and snippets.

@DemmyDemon
Created May 17, 2013 21:06
Show Gist options
  • Save DemmyDemon/5601964 to your computer and use it in GitHub Desktop.
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.
#!/usr/bin/perl
use strict;
use warnings;
use Irssi;
our $VERSION = 0.1;
our %IRSSI = (
authors => 'Fredrik "Demonen" Vold',
contact => 'fredrik@webkonsept.com',
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