about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-11-22 08:19:07 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-11-22 08:19:07 -0500
commit3396cc5f8f4f55f11638deb7a2ce817dfb73637a (patch)
treedc0433bd48ed50463a091b54f83c4ba26ffa1c89
parent35813412a845edfdcc513300e25324145f53d9a3 (diff)
downloadsnitch-3396cc5f8f4f55f11638deb7a2ce817dfb73637a.tar.gz
snitch-3396cc5f8f4f55f11638deb7a2ce817dfb73637a.tar.bz2
snitch-3396cc5f8f4f55f11638deb7a2ce817dfb73637a.zip
Bot should ignore retweets
-rw-r--r--snitch.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/snitch.cpp b/snitch.cpp index 65afff3..80df330 100644 --- a/snitch.cpp +++ b/snitch.cpp
@@ -115,6 +115,8 @@ int main(int argc, char** argv)
115 if ( 115 if (
116 // Only monitor people you are following 116 // Only monitor people you are following
117 friends.count(tweet.getAuthor().getID()) && 117 friends.count(tweet.getAuthor().getID()) &&
118 // Ignore retweets
119 !tweet.isRetweet() &&
118 // Ignore tweets from before the bot started up 120 // Ignore tweets from before the bot started up
119 createdTime > startedTime) 121 createdTime > startedTime)
120 { 122 {