Skip to content

Commit

Permalink
Fixed how it would not respond on the first query after reload, becas…
Browse files Browse the repository at this point in the history
…e there was nothing in the spots in the array. Otherwise pulling undef from [1], [2], etc will not satisfy the json and make it valid. Adding just bunk to the array works.
  • Loading branch information
oxagast committed Mar 7, 2024
1 parent fd7564b commit 65f1b52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion franklin.pl
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,12 @@ sub callapi {
$dcp = sanitize($dcp, noquote => 1);
$flast = sanitize($flast, noquote => 1);
$ut = sanitize($ut, noquote => 1);
$chat[1] = "Bunk.";
$chat[2] = "Bunk.";
$chatsan = sanitize($chat[-3], noquote => 1);
$ut =~ s/\"/\\"/g;
$chatsan =~ s/\"/\\"/g;
$textcall = $dcp;

if ($flast eq "") {
$flast = "Starting Franklin...";
}
Expand Down

0 comments on commit 65f1b52

Please sign in to comment.