Created
August 8, 2012 15:31
-
-
Save nicolascormier/3295962 to your computer and use it in GitHub Desktop.
Irssi Message Notification
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
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