X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?p=irc.git;a=blobdiff_plain;f=commands.py;h=86d0d2331acd6c8374219c9c740c82b40fe5e2c3;hp=491ab3c7254840f476270abd60f8c6f33e478004;hb=e769da6e9c65ea9b8f4f58d5d5f0e0ef31643797;hpb=8eb43691868c7ba6ea2d65f9ab705745bb81770c diff --git a/commands.py b/commands.py index 491ab3c..86d0d23 100755 --- a/commands.py +++ b/commands.py @@ -521,7 +521,7 @@ def getTweet(urlstring,twitapi,inclusion=False): else: tweeter_screen = "[not returned]" ; tweeter_name = "[not returned]" tweeter_name = tweeter_name + " RTing " + status.user.name #.encode('UTF-8', 'replace') - tweetText = status.text + tweetText = status.full_text if status.media: replacements = defaultdict( list ) for medium in status.media: @@ -593,5 +593,4 @@ def getTweet(urlstring,twitapi,inclusion=False): stringout = "Error: %s" % terror[1].__str__() if inclusion: return stringout # don't want to double-encode it, so just pass it on for now and encode later - print stringout.encode('UTF-8', 'replace') return stringout.encode('UTF-8', 'replace')