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