mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
Plugin/GetUrl: add TODO to header
This commit is contained in:
parent
f9d8c09b5b
commit
f2a45d74a6
@ -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 <pragma78@gmail.com>
|
||||
# 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 . "]";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user