X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Bot.pm;h=5693dd4d0b353c392d51a173736421262ba3f74d;hb=48c2e7d852234548bdce239b4441b7a98de408a2;hp=9a289f0695a55a39866706d9f199a5bd491ecb26;hpb=17aabe51d5b62ae4bcae5ec3b02757ab5aa65b77;p=NDIRC.git 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)