]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/zfi.pl
- strictify
[infobot.git] / src / Modules / zfi.pl
index 458411953bae36c7132daa0683f6fde73a3055da..0d4ed649ae44eb87b906488640a18c36ec6f03c4 100644 (file)
@@ -24,6 +24,8 @@ package zfi;
 
 # We reply publicly or privately, depending how we were called
 
+use strict;
+
 my $no_zfi;
 
 BEGIN {
@@ -43,7 +45,7 @@ sub queryText {
        my $res_return = 5;
 
        my $ua = new LWP::UserAgent;
-  $ua->proxy('http', $::param{'httpProxy'}) if (&::IsParam("httpProxy"));
+       $ua->proxy('http', $::param{'httpProxy'}) if (&::IsParam("httpProxy"));
 
        $ua->timeout(10);
 
@@ -78,7 +80,7 @@ sub queryText {
                        my ($name, $href, $desc) = split(/\|/,$line);
 
                        if ($res_count < $res_return) {
-                               $result .= "$name ($desc) $href\n";
+                               $result .= "$name ($desc) $href : ";
                                $res_display ++;
                        }
                        $res_count ++;
@@ -86,7 +88,7 @@ sub queryText {
        }
 
        if (($query) && ($res_count > $res_display)) {
-               $result .= "$res_display of $res_count shown. All at http://zaurii.com/zfi/index.phtml?p=r&r=$query\n";
+               $result .= "$res_display of $res_count shown. All at http://zaurii.com/zfi/index.phtml?p=r&r=$query";
        }
 
        return $result;
@@ -95,7 +97,7 @@ sub queryText {
 sub query {
        my ($args) = @_;
        &::performStrictReply(&queryText($args));
-  return;
+       return;
 }
 
 1;