diff --git a/ayudante-lobo b/ayudante-lobo index bfbbb84..32d434a 100755 --- a/ayudante-lobo +++ b/ayudante-lobo @@ -139,7 +139,10 @@ sub trigger { $file->remove() if defined $Conf->{monitor}->{$sender_mon}->{action}->{delete} and $Conf->{monitor}->{$sender_mon}->{action}->{delete} == 1; } sub notify { - macintalk_say(text=>$_[($_[0] eq $ME)? 1 : 0], voice=>(length $Conf->{general}->{notify}->{macintalk_voice}? $Conf->{general}->{notify}->{macintalk_voice} : "Daniel")) if $Conf->{general}->{notify}->{macintalk} == 1; + my %macintalk_args = (text => $_[($_[0] eq $ME)? 1 : 0],); + $macintalk_args{voice} = $Conf->{general}->{notify}->{macintalk_voice} if length $Conf->{general}->{notify}->{macintalk_voice}; + $macintalk_args{rate} = $Conf->{general}->{notify}->{macintalk_rate} if $Conf->{general}->{notify}->{macintalk_rate} > 120; + macintalk_say(%macintalk_args) if $Conf->{general}->{notify}->{macintalk} == 1; nc_notify(@_) if $Conf->{general}->{notify}->{osxnotify} == 1; } sub name { diff --git a/sample.ayudante-loborc b/sample.ayudante-loborc index ee3ff09..eff5916 100644 --- a/sample.ayudante-loborc +++ b/sample.ayudante-loborc @@ -60,4 +60,5 @@ general: error: 0 macintalk: 1 macintalk_voice: Daniel + macintalk_rate: 190 osxnotify: 1