Skip to content

Instantly share code, notes, and snippets.

@nicolascormier
Created August 8, 2012 15:31
Show Gist options
  • Save nicolascormier/3295962 to your computer and use it in GitHub Desktop.
Save nicolascormier/3295962 to your computer and use it in GitHub Desktop.
Irssi Message Notification
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
sub tmsg {
my ($server,$msg,$nick,$address,$target) = @_;
$msg =~ s/\'//g;
system("CHANGE/ME/UserNotifCenter.app/Contents/MacOS/UserNotifCenter '$nick' '$msg'");
}
Irssi::signal_add_last('message public', \&tmsg);
Irssi::signal_add_last('message private', \&tmsg);
#Irssi::signal_add_last("print text", "hilight");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment