diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-11-22 08:19:07 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-11-22 08:19:07 -0500 |
commit | 3396cc5f8f4f55f11638deb7a2ce817dfb73637a (patch) | |
tree | dc0433bd48ed50463a091b54f83c4ba26ffa1c89 /snitch.cpp | |
parent | 35813412a845edfdcc513300e25324145f53d9a3 (diff) | |
download | snitch-3396cc5f8f4f55f11638deb7a2ce817dfb73637a.tar.gz snitch-3396cc5f8f4f55f11638deb7a2ce817dfb73637a.tar.bz2 snitch-3396cc5f8f4f55f11638deb7a2ce817dfb73637a.zip |
Bot should ignore retweets
Diffstat (limited to 'snitch.cpp')
-rw-r--r-- | snitch.cpp | 2 |
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 | { |