3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-06 11:28:43 +02:00

Plugin/GetUrl: add TODO to header

This commit is contained in:
Pragmatic Software 2021-08-06 10:16:14 -07:00
parent f9d8c09b5b
commit f2a45d74a6

View File

@ -1,6 +1,8 @@
# File: GetUrl.pm # File: GetUrl.pm
# #
# Purpose: Retrieves text contents of a URL. # Purpose: Retrieves text contents of a URL.
#
# TODO: add --useragent and --striphtml, etc, options
# SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com> # SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
@ -53,8 +55,7 @@ sub cmd_geturl {
if ($response->is_success) { if ($response->is_success) {
return $response->decoded_content; return $response->decoded_content;
} } else {
else {
return "[Failed to fetch page: " . $response->status_line . "]"; return "[Failed to fetch page: " . $response->status_line . "]";
} }
} }