From 9d1cdef8813ceb792e614c4f0d455f44d2098edb Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 4 Feb 2020 03:13:44 -0800 Subject: [PATCH] WebPaste: restart alarm after pasting with UA::Paranoid --- PBot/WebPaste.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PBot/WebPaste.pm b/PBot/WebPaste.pm index 92a35a31..a2fc1702 100644 --- a/PBot/WebPaste.pm +++ b/PBot/WebPaste.pm @@ -81,6 +81,7 @@ sub paste_ixio { push @{ $ua->requests_redirectable }, 'POST'; my %post = ('f:1' => $text); my $response = $ua->post("http://ix.io", \%post); + alarm 1; # LWP::UserAgent::Paranoid kills alarm return "error pasting: " . $response->status_line if not $response->is_success; my $result = $response->content; $result =~ s/^\s+//;