Skip to content

Commit

Permalink
fix self-replies
Browse files Browse the repository at this point in the history
  • Loading branch information
prehensile committed Jun 18, 2012
1 parent 99a417f commit d758b88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions twitterconnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def run( self ):
auth = tweepy.OAuthHandler( consumer_key, consumer_secret )
auth.set_access_token( key, secret )
self.api = tweepy.API( auth )
self.name = self.api.me().screen_name
self.twitter_user = self.api.me()

if self.track_keywords is not None:
logging.info( "Connecting Twitter stream for keywords %s" % self.track_keywords )
Expand All @@ -104,7 +104,8 @@ def tweet( self, message ):
# Streaming functions

def push_status( self, status ):
self.stream_buffer.append( status )
if status.author.id != self.twitter_user.id:
self.stream_buffer.append( status )

def pop_stream( self ):
out = self.stream_buffer
Expand Down

0 comments on commit d758b88

Please sign in to comment.