From: terminaldweller Date: Mon, 3 Jul 2023 20:23:33 +0000 (+0330) Subject: fixed a style issue by removing prantheses X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=172d1e99f308f4d64e639a2b8ec21451079245d4;p=irssi-scripts.irssi.org.git fixed a style issue by removing prantheses --- diff --git a/scripts/tongueworm.pl b/scripts/tongueworm.pl index 293ca99..a2cb4a9 100644 --- a/scripts/tongueworm.pl +++ b/scripts/tongueworm.pl @@ -38,7 +38,7 @@ Irssi::settings_add_int('misc','wormtongue_temperature', 700); Irssi::settings_add_bool('misc','wormtongue_debug', 0); Irssi::settings_add_str('misc', 'wormtongue_request', 'rephrase the sentence that comes after the question mark and dont change its language?'); -sub wormtongue() { +sub wormtongue { my $debug = Irssi::settings_get_bool('wormtongue_debug'); my $ua = LWP::UserAgent->new; my $server_endpoint = "https://api.openai.com/v1/chat/completions";