Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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';`;
- }
- }
Add Comment
Please, Sign In to add comment