3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-27 05:02:34 +01:00

Plugins/Weather.pm: remove debugging statements

This commit is contained in:
Pragmatic Software 2020-01-26 05:43:44 -08:00
parent 86f59fd304
commit 8c9087c57e

View File

@ -77,8 +77,6 @@ sub get_weather {
return "Failed to fetch weather date: " . $response->status_line;
}
$self->{pbot}->{logger}->log("$xml\n");
my $dom = XML::LibXML->load_xml(string => $xml);
my $result = '';
@ -86,7 +84,6 @@ sub get_weather {
foreach my $channel ($dom->findnodes('//channel')) {
my $title = $channel->findvalue('./title');
my $description = $channel->findvalue('./description');
print "[$title][$description]\n";
if ($description eq 'Invalid Location') {
return "Location $location not found. Use \"<city>, <country abbrev>\" (e.g. \"paris, fr\") or a US Zip Code or \"<city>, <state abbrev>, US\" (e.g., \"austin, tx, us\").";
@ -114,7 +111,6 @@ sub get_weather {
}
return $result;
}
sub fix_temps {