From 7c4f9c5db0f2e18f4ccabf631f730797d18226b5 Mon Sep 17 00:00:00 2001 From: Jeremiah Ticket Date: Sun, 28 Aug 2016 19:53:06 -0800 Subject: [PATCH] Added signals for actions and own private messages, and they should work now! --- sound.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound.pl b/sound.pl index 6eaa139..64b561c 100755 --- a/sound.pl +++ b/sound.pl @@ -44,6 +44,7 @@ sub pub_msg { my ($server,$msg,$nick,$address,$target) = @_; system("play -qnV0 synth 0.09 tri E3:B3 &> /dev/null&"); } + sub action_msg { my ($server,$msg,$nick,$address,$target) = @_; system("play -qnV0 synth 0.25 tri G5:E1 tri B5:D1 remix - norm -5 &> /dev/null&"); @@ -86,6 +87,8 @@ system("play -qnV0 synth 0.5 tri A3:D3 tri D3:A3 remix - &> /dev/null&"); #-------------------------------------------------------------------- Irssi::signal_add_last("message public", "pub_msg"); +Irssi::signal_add_last("message irc action", "action_msg"); +Irssi::signal_add_last("message own_public", "own_msg"); Irssi::signal_add_last("message private", "pri_msg"); Irssi::signal_add_last('print text', "hilight"); Irssi::signal_add("event join", 'join_msg');