Added subs and signals for notice and own_notice

This commit is contained in:
Jeremiah Ticket 2016-08-29 08:49:55 -08:00
parent d092a4aa23
commit 23deb70289

View File

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