Hopefully made this thing safe...

This commit is contained in:
Jeremiah Ticket 2023-10-08 05:38:44 -06:00
parent 3e703f526f
commit e695e0a257

View File

@ -46,7 +46,17 @@ sub speak_message {
my $SpeechVoice = Irssi::settings_get_str("speech_voice");
my $SpeechModule = Irssi::settings_get_str("speech_module");
# Speak The Message
system("spd-say -P notification -y $SpeechVoice -r $SpeechRate -o $SpeechModule -- \"$summary $body\"&");
my @spd = ("spd-say",
"-P",
"notification",
"-o",
$SpeechModule,
"-y",
$SpeechVoice,
"-r",
$SpeechRate,
"$summary $body");
system(@spd);
}
# Handle incoming public messages: