From 0fba113a979e0eff945c37271a79c8d9d9a7c47b Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sun, 19 Mar 2017 10:52:37 +0100 Subject: [PATCH] Planetarion is finally using https --- Bot.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bot.pm b/Bot.pm index 9a289f0..5693dd4 100644 --- a/Bot.pm +++ b/Bot.pm @@ -284,8 +284,8 @@ sub parseCommand { my ($p,$command,$args) = ($msg =~ /^([.!~])(\S+)(?: (.+))?/); - if ($msg =~ m{http://[\w.]+/.+?scan(_id|_grp)?=(\w+)}){ - if (!$command || $command =~ m{^http://}){ + if ($msg =~ m{https?://[\w.]+/.+?scan(_id|_grp)?=(\w+)}){ + if (!$command || $command =~ m{^https?://}){ ($p,$command,$args) = ('.','addscan',$msg); }elsif($command ne 'addscan'){ $self->parseCommand (".addscan $msg", $server, $nick, $address, $channel, $model) -- 2.39.2