From 8170d9f9b3ac8baaf62f253701940531d27dcfbb Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 31 May 2016 10:25:43 -0400 Subject: Bot now signs its captions --- infinite.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infinite.cpp b/infinite.cpp index 1086169..d9b17c8 100644 --- a/infinite.cpp +++ b/infinite.cpp @@ -790,12 +790,12 @@ int main(int argc, char** argv) } std::string tweetText; - size_t tweetLim = 140 - client.getConfiguration().getCharactersReservedPerMedia() - 2; + size_t tweetLim = 140 - client.getConfiguration().getCharactersReservedPerMedia() - client.getUser().getScreenName().length() - 5; if (action.length() > tweetLim) { - tweetText = "\"" + action.substr(0, tweetLim - 1) + "…\""; + tweetText = "\"" + action.substr(0, tweetLim - 1) + "…\" --@" + client.getUser().getScreenName(); } else { - tweetText = "\"" + action + "\""; + tweetText = "\"" + action + "\" --@" + client.getUser().getScreenName(); } twitter::tweet tw; -- cgit 1.4.1