X-Git-Url: http://lab.mitty.jp/git/?a=blobdiff_plain;f=Dev%2Ftwitter%2Ftwitterbot.pl;h=ae37ea6210a927720a04319aa69d7b844a6f8dfb;hb=b9060c88e64ce10e6c11cdb9c3a5552c91640aaa;hp=3923a6b0dda3842a07a186b234e81a41f82e7604;hpb=24fa584c806130e9dfba733db4028ca55a75e182;p=lab.git diff --git a/Dev/twitter/twitterbot.pl b/Dev/twitter/twitterbot.pl index 3923a6b..ae37ea6 100755 --- a/Dev/twitter/twitterbot.pl +++ b/Dev/twitter/twitterbot.pl @@ -143,7 +143,7 @@ if ($conf->{mail}{body}) { DEBUG or sendmail(%mail) or warn "Error sending mail: $Mail::Sendmail::error\n"; } -if ($tweets) { +if (ref $tweets and keys %{$tweets}) { # save last status to yaml file DEBUG or YAML::Tiny::DumpFile("$Bin/status.yml", $stat); DEBUG and warn "status.yml => ", Dumper($stat);