Changeset e0c0679 in lab.git


Ignore:
Timestamp:
Oct 5, 2010 11:48:18 PM (14 years ago)
Author:
mitty <mitty@…>
Branches:
master, trunk
Children:
e1132d9
Parents:
567a134
Message:
  • remove needless hash check

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@69 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • twitter/twitterbot.pl

    r567a134 re0c0679  
    3737 
    3838my $tweets = {}; 
    39 my $tweet; 
    40  
    41 $tweet = or_search($bot, $conf->{hashtag}, $stat->{search}); 
    42 if ($tweet) { 
    43     %$tweets = (%$tweets, %$tweet); 
    44 } 
    45  
    46 $tweet = mentions_ids($bot, $stat->{mention}); 
    47 if ($tweet) { 
    48     %$tweets = (%$tweets, %$tweet); 
    49 } 
     39%$tweets = ( 
     40    %$tweets, 
     41    %{ or_search($bot, $conf->{hashtag}, $stat->{search}) } 
     42); 
     43%$tweets = ( 
     44    %$tweets, 
     45    %{ mentions_ids($bot, $stat->{mention}) } 
     46); 
    5047 
    5148foreach my $id (sort keys %$tweets) { 
Note: See TracChangeset for help on using the changeset viewer.