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 . "]"; } }