]> ruin.nu Git - NDIRC.git/commitdiff
Planetarion is finally using https
authorMichael Andreen <harv@ruin.nu>
Sun, 19 Mar 2017 09:52:37 +0000 (10:52 +0100)
committerMichael Andreen <harv@ruin.nu>
Sun, 19 Mar 2017 09:52:37 +0000 (10:52 +0100)
Bot.pm

diff --git a/Bot.pm b/Bot.pm
index 9a289f0695a55a39866706d9f199a5bd491ecb26..5693dd4d0b353c392d51a173736421262ba3f74d 100644 (file)
--- 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)