From e695e0a257467992aedc992ed20870aa43172eda Mon Sep 17 00:00:00 2001 From: Jeremiah Ticket Date: Sun, 8 Oct 2023 05:38:44 -0600 Subject: [PATCH] Hopefully made this thing safe... --- autospeak.pl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/autospeak.pl b/autospeak.pl index 8e3ea55..96d4170 100644 --- a/autospeak.pl +++ b/autospeak.pl @@ -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: