From 141753a30e4623cad82afc29474c0f6b18d62300 Mon Sep 17 00:00:00 2001 From: Sarang Bharadwaj Date: Fri, 8 Jun 2012 18:31:28 +0530 Subject: [PATCH] Removed initial '\n' from timeline response --- backends/twitter/Requests/TimelineRequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/twitter/Requests/TimelineRequest.cpp b/backends/twitter/Requests/TimelineRequest.cpp index dc4af4aa..f8c15d14 100644 --- a/backends/twitter/Requests/TimelineRequest.cpp +++ b/backends/twitter/Requests/TimelineRequest.cpp @@ -17,7 +17,7 @@ void TimelineRequest::run() LOG4CXX_INFO(logger, user << " - " << replyMsg.length() << " " << replyMsg << "\n" ); std::vector tweets = getTimeline(replyMsg); - timeline = "\n"; + timeline = ""; if(tweets.size() && (since_id == "" || (since_id != "" && tweets[0].getID() != np->getMostRecentTweetID(user)) )) { @@ -31,7 +31,7 @@ void TimelineRequest::run() void TimelineRequest::finalize() { - if(success && timeline != "\n") { + if(success && timeline != "") { std::string error = getErrorMessage(replyMsg); if(error.length()) { np->handleMessage(user, "twitter-account", error);