From: Michael Andreen Date: Sun, 19 Mar 2017 09:52:37 +0000 (+0100) Subject: Planetarion is finally using https X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=commitdiff_plain;h=0fba113a979e0eff945c37271a79c8d9d9a7c47b Planetarion is finally using https --- 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)