mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
horoscope module: List valid signs of Zodaic
This commit is contained in:
parent
b405f8b88e
commit
9523600366
@ -13,7 +13,7 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 235,
|
BUILD_REVISION => 236,
|
||||||
BUILD_DATE => "2011-01-19",
|
BUILD_DATE => "2011-01-19",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -422,6 +422,10 @@ sub horoscope_search {
|
|||||||
my ($line) = $content =~ m|CHANGE $term HERE -->(.+)<!-- END $term HERE|i;
|
my ($line) = $content =~ m|CHANGE $term HERE -->(.+)<!-- END $term HERE|i;
|
||||||
$line =~ s/ +/ /g;
|
$line =~ s/ +/ /g;
|
||||||
|
|
||||||
|
if($line eq "") {
|
||||||
|
return "No results found; signs of the Zodiac are Aquarius, Pisces, Aries, Taurus, Gemini, Cancer, Leo, Virgo, Libra, Scorpio, Sagittarius, Capricorn";
|
||||||
|
}
|
||||||
|
|
||||||
return $line;
|
return $line;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -436,6 +440,10 @@ sub horrorscope_search {
|
|||||||
my ($line) = $content =~ m|<tr>.*?$term.*?</td>(.*?)</tr>|i;
|
my ($line) = $content =~ m|<tr>.*?$term.*?</td>(.*?)</tr>|i;
|
||||||
$line =~ s/ +/ /g;
|
$line =~ s/ +/ /g;
|
||||||
|
|
||||||
|
if($line eq "") {
|
||||||
|
return "No results found; signs of the Zodiac are Aquarius, Pisces, Aries, Taurus, Gemini, Cancer, Leo, Virgo, Libra, Scorpio, Sagittarius, Capricorn";
|
||||||
|
}
|
||||||
|
|
||||||
return $line;
|
return $line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user