From f2a45d74a61f8c4eedf1eedb58a7a6b6b7406efb Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 6 Aug 2021 10:16:14 -0700 Subject: [PATCH] Plugin/GetUrl: add TODO to header --- lib/PBot/Plugin/GetUrl.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/PBot/Plugin/GetUrl.pm b/lib/PBot/Plugin/GetUrl.pm index 8b4429e6..e2546ad7 100644 --- a/lib/PBot/Plugin/GetUrl.pm +++ b/lib/PBot/Plugin/GetUrl.pm @@ -1,6 +1,8 @@ # File: GetUrl.pm # # Purpose: Retrieves text contents of a URL. +# +# TODO: add --useragent and --striphtml, etc, options # SPDX-FileCopyrightText: 2021 Pragmatic Software # SPDX-License-Identifier: MIT @@ -53,8 +55,7 @@ sub cmd_geturl { if ($response->is_success) { return $response->decoded_content; - } - else { + } else { return "[Failed to fetch page: " . $response->status_line . "]"; } }