Added subs and signals for notice and own_notice
This commit is contained in:
parent
d092a4aa23
commit
23deb70289
10
sound.pl
10
sound.pl
@ -63,6 +63,14 @@ sub own_msg {
|
|||||||
my ($server,$msg,$nick,$address,$target) = @_;
|
my ($server,$msg,$nick,$address,$target) = @_;
|
||||||
system("play -qnV0 synth 0.09 tri B3:E3 &> /dev/null&");
|
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
|
# 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 private", "pri_msg");
|
||||||
Irssi::signal_add_last("message own_private", "own_private_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_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_last('print text', "hilight");
|
||||||
Irssi::signal_add("event join", 'join_msg');
|
Irssi::signal_add("event join", 'join_msg');
|
||||||
Irssi::signal_add("event quit", 'quit_msg');
|
Irssi::signal_add("event quit", 'quit_msg');
|
||||||
|
Loading…
Reference in New Issue
Block a user