3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-05 02:48:50 +02:00

Replace https:// with http:// in -url usage messages

This commit is contained in:
Pragmatic Software 2019-07-01 21:36:08 -07:00
parent 1abed830ef
commit b4ce94e655

View File

@ -970,7 +970,7 @@ sub factadd {
my ($url) = $self->{pbot}->{interpreter}->split_args(\@arglist, 1); my ($url) = $self->{pbot}->{interpreter}->split_args(\@arglist, 1);
if ($url !~ m/^https?:\/\/(?:sprunge.us|ix.io)\/\w+$/) { if ($url !~ m/^https?:\/\/(?:sprunge.us|ix.io)\/\w+$/) {
return "Invalid URL: acceptable URLs are: https://sprunge.us, https://ix.io"; return "Invalid URL: acceptable URLs are: http://sprunge.us, http://ix.io";
} }
# create a UserAgent # create a UserAgent
@ -1638,7 +1638,7 @@ sub factchange {
if (defined $url) { if (defined $url) {
if ($url !~ m/^https?:\/\/(?:sprunge.us|ix.io)\/\w+$/) { if ($url !~ m/^https?:\/\/(?:sprunge.us|ix.io)\/\w+$/) {
return "Invalid URL: acceptable URLs are: https://sprunge.us, https://ix.io"; return "Invalid URL: acceptable URLs are: http://sprunge.us, http://ix.io";
} }
my $ua = LWP::UserAgent->new(timeout => 10); my $ua = LWP::UserAgent->new(timeout => 10);