diff options
author | Mike Crute <crutem@amazon.com> | 2018-03-06 11:26:12 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2018-03-06 11:26:12 -0800 |
commit | 87a3cdd4aaf58b1ab666d0873ed13626aa94660e (patch) | |
tree | d13a3fa50a1fc213eae5eb980ed2567c6ef09ad2 /.irssi | |
parent | 1bce5da70cd2c101fda45f5eb9828bfbc494656b (diff) | |
download | dotfiles-87a3cdd4aaf58b1ab666d0873ed13626aa94660e.tar.bz2 dotfiles-87a3cdd4aaf58b1ab666d0873ed13626aa94660e.tar.xz dotfiles-87a3cdd4aaf58b1ab666d0873ed13626aa94660e.zip |
Switch irssi to mac notifications
Diffstat (limited to '.irssi')
l--------- | .irssi/scripts/autorun/irssi-notify.pl | 1 | ||||
-rw-r--r-- | .irssi/scripts/irssi-notify.pl | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/.irssi/scripts/autorun/irssi-notify.pl b/.irssi/scripts/autorun/irssi-notify.pl new file mode 120000 index 0000000..accb805 --- /dev/null +++ b/.irssi/scripts/autorun/irssi-notify.pl | |||
@@ -0,0 +1 @@ | |||
../irssi-notify.pl \ No newline at end of file | |||
diff --git a/.irssi/scripts/irssi-notify.pl b/.irssi/scripts/irssi-notify.pl index 0731314..57bc858 100644 --- a/.irssi/scripts/irssi-notify.pl +++ b/.irssi/scripts/irssi-notify.pl | |||
@@ -27,13 +27,13 @@ sub pub_msg { | |||
27 | my ($server,$msg,$nick,$address,$target) = @_; | 27 | my ($server,$msg,$nick,$address,$target) = @_; |
28 | 28 | ||
29 | if ($msg =~ Irssi::settings_get_str('notify_nick')) { | 29 | if ($msg =~ Irssi::settings_get_str('notify_nick')) { |
30 | notify_send("Public Message in $target", "$nick: $msg"); | 30 | notify_send_mac("Public Message in $target", "$nick: $msg"); |
31 | } | 31 | } |
32 | } | 32 | } |
33 | 33 | ||
34 | sub priv_msg { | 34 | sub priv_msg { |
35 | my ($server,$msg,$nick,$address) = @_; | 35 | my ($server,$msg,$nick,$address) = @_; |
36 | notify_send("Private Message", "$nick: $msg"); | 36 | notify_send_mac("Private Message", "$nick: $msg"); |
37 | } | 37 | } |
38 | 38 | ||
39 | Irssi::settings_add_str('misc', 'notify_nick', 0); | 39 | Irssi::settings_add_str('misc', 'notify_nick', 0); |