From 23deb702892cd9397fc055836bd41b8cebe158a8 Mon Sep 17 00:00:00 2001 From: Jeremiah Ticket Date: Mon, 29 Aug 2016 08:49:55 -0800 Subject: [PATCH] Added subs and signals for notice and own_notice --- sound.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound.pl b/sound.pl index 16ecbaa..5c81ec4 100755 --- a/sound.pl +++ b/sound.pl @@ -63,6 +63,14 @@ sub own_msg { my ($server,$msg,$nick,$address,$target) = @_; system("play -qnV0 synth 0.09 tri B3:E3 &> /dev/null&"); } +sub own_notice_msg { + my ($server,$msg,$nick,$address,$target) = @_; + system("play -qnV0 synth 0.09 tri B3:E3 &> /dev/null&"); +} +sub notice_msg { + my ($server,$msg,$nick,$address,$target) = @_; + system("play -qnV0 synth 0.09 tri B3:E3 &> /dev/null&"); +} #-------------------------------------------------------------------- # The sound playing function for private message @@ -101,6 +109,8 @@ Irssi::signal_add_last("message own_public", "own_msg"); Irssi::signal_add_last("message private", "pri_msg"); Irssi::signal_add_last("message own_private", "own_private_msg"); Irssi::signal_add_last("message irc own_action", "own_action_msg"); +Irssi::signal_add_last("message irc own_notice", "own_notice_msg"); +Irssi::signal_add_last("message irc notice", "notice_msg"); Irssi::signal_add_last('print text', "hilight"); Irssi::signal_add("event join", 'join_msg'); Irssi::signal_add("event quit", 'quit_msg');