-
-
Save baldur/3541878 to your computer and use it in GitHub Desktop.
Perl script to send mentions of my name in IRC to Notification Center or whatever it's called
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 warnings; | |
use Irssi; | |
Irssi::signal_add 'message public', 'sig_message_public'; | |
sub sig_message_public { | |
my ($server, $msg, $nick, $nick_addr, $target) = @_; | |
if ($msg =~ /ryan/) { | |
$msg =~ s/\'/\\'/g; | |
`terminal-notifier -message '$msg';`; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment