print tweet id when printing tweets.

will be necessary if we ever implement any kind of reply-to-id replying
This commit is contained in:
Brian S. Stephan 2011-01-03 00:31:23 -06:00
parent b748d43bbd
commit 4241071b7e
1 changed files with 4 additions and 4 deletions

View File

@ -131,14 +131,14 @@ class Twitter(Module):
if tweet.retweeted_status:
retweet = tweet.retweeted_status
if print_source:
return '%s (RT %s): %s' % (tweet.user.name.encode('utf-8', 'ignore'), retweet.user.name.encode('utf-8', 'ignore'), retweet.text.encode('utf-8', 'ignore'))
return '%s (RT %s): %s [%s]' % (tweet.user.name.encode('utf-8', 'ignore'), retweet.user.name.encode('utf-8', 'ignore'), retweet.text.encode('utf-8', 'ignore'), tweet.id)
else:
return '(RT %s): %s' % (retweet.user.name.encode('utf-8', 'ignore'), retweet.text.encode('utf-8', 'ignore'))
return '(RT %s): %s [%s]' % (retweet.user.name.encode('utf-8', 'ignore'), retweet.text.encode('utf-8', 'ignore'), tweet.id)
else:
if print_source:
return '%s: %s' % (tweet.user.name.encode('utf-8', 'ignore'), tweet.text.encode('utf-8', 'ignore'))
return '%s: %s [%s]' % (tweet.user.name.encode('utf-8', 'ignore'), tweet.text.encode('utf-8', 'ignore'), tweet.id)
else:
return '%s' % (tweet.text.encode('utf-8', 'ignore'))
return '%s [%s]' % (tweet.text.encode('utf-8', 'ignore'), tweet.id)
# vi:tabstop=4:expandtab:autoindent
# kate: indent-mode python;indent-width 4;replace-tabs on;