From a94fe8052ba36e7ffbf608aa6b69b4a895126e38 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Fri, 5 Jun 2009 17:32:43 +0200 Subject: [PATCH] Fix to recognize that a url is not a command --- Misc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2