]> git.donarmstrong.com Git - infobot.git/commitdiff
eep, skip the match
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 19 Oct 2003 20:23:08 +0000 (20:23 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Sun, 19 Oct 2003 20:23:08 +0000 (20:23 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@851 c11ca15a-4712-0410-83d8-924469b57eb5

src/CommandStubs.pl

index 3dd57151679922d3429c0c660871c35dac40bf63..3a2814c49d8956e285469b72db6a128a4edaabc0 100644 (file)
@@ -296,7 +296,7 @@ sub Modules {
     }
 
     # google searching. Simon++
-    if ($message =~ /^(?:search\s+)?($w3search_regex)\s+(for\s+)?['"]?(.*?)["']?\s*\?*$/i) {
+    if ($message =~ /^(?:search\s+)?($w3search_regex)\s+(?:for\s+)?['"]?(.*?)["']?\s*\?*$/i) {
        return unless (&hasParam("wwwsearch"));
 
        &Forker("wwwsearch", sub { &W3Search::W3Search($1,$2); } );