Added signals for actions and own private messages, and they should work now!

This commit is contained in:
Jeremiah Ticket 2016-08-28 19:53:06 -08:00
parent 9de0524a95
commit 7c4f9c5db0

View File

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