X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Misc.pm;h=a08ae7632f87cf096051b170302b4bb7ef5944ed;hb=1ccb344994c1b517c662da9f236cf1c640780177;hp=6f923897b3c748edab1c84bd7246e68a2fbc0edc;hpb=b87b6e87c3959096739e54bdf95c23d9e8212145;p=NDIRC.git diff --git a/Misc.pm b/Misc.pm index 6f92389..a08ae76 100644 --- a/Misc.pm +++ b/Misc.pm @@ -49,7 +49,7 @@ sub parseCommand { my ($p,$command,$args) = ($msg =~ /^([.!~])(\S+)(?: (.+))?/); if ($msg =~ m{http://[\w.]+/.+?scan(_id|_grp)?=(\w+)}){ - unless ($command){ + if (!$command || $command =~ m{^http://}){ ($p,$command,$args) = ('.','addscan',$msg); }elsif($command ne 'addscan'){ parseCommand (".addscan $msg", $server, $nick, $address, $channel, $disp,$model)