From: Michael Andreen Date: Fri, 5 Jun 2009 15:32:43 +0000 (+0200) Subject: Fix to recognize that a url is not a command X-Git-Url: https://ruin.nu/git/addintel?a=commitdiff_plain;h=a94fe8052ba36e7ffbf608aa6b69b4a895126e38;p=NDIRC.git Fix to recognize that a url is not a command --- 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)