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');