Add the ability to customise what voice is used by macintalk notifications

This commit is contained in:
Matthew Connelly 2015-03-25 16:05:16 +00:00
parent 1b919b6b56
commit 4391f64f85
2 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,7 @@ 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]) if $Conf->{general}->{notify}->{macintalk} == 1;
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;
nc_notify(@_) if $Conf->{general}->{notify}->{osxnotify} == 1;
}
sub name {

View File

@ -59,4 +59,5 @@ general:
upload: 1
error: 0
macintalk: 1
macintalk_voice: Daniel
osxnotify: 1