aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter.c
Commit message (Collapse)AuthorAgeLines
...
* Add limit param to split_command_parts(), fix twitter quotes bugdequis2014-07-24-2/+2
| | | | Only took me a few months to write. I even added a test case.
* Update to deal with a not-so-recent regression in the Twitter URL lenghteningWilmer van der Gaast2013-07-13-2/+3
| | | | | | | | | service. https://dev.twitter.com/blog/upcoming-tco-changes #1077 Seriously guys, stop being so obnoxious. This t.co garbage lengthens pretty much everything (that looks like a) URL at this point. Stop counting it towards the 140-char limit.
* Fix cleanup failure on Twitter timeouts.Wilmer van der Gaast2013-06-16-5/+3
|
* Turn off fetch_mentions by default for identi.ca connections since it's noWilmer van der Gaast2013-06-16-1/+4
| | | | | longer working. (Not compatible with Twitter API 1.1 from what I can see?)
* Emit a warning when the user wants to do OAuth with a non-Twitter/identi.caWilmer van der Gaast2013-06-01-2/+8
| | | | | service, and string handling fix when pretending to do this anyway.
* I'm still bored on a long flight. Wrote a script to automatically updateWilmer van der Gaast2013-02-21-1/+1
| | | | | | | my copyright mentions since some were getting pretty stale. Left files not touched since before 2012 alone so that this change doesn't touch almost EVERY source file.
* Clean up set_my_name API implementationsMiklos Vajna2013-02-18-8/+0
|
* Fixed NULL pointer dereference bug when newly connecting to identi.ca.Wilmer van der Gaast2013-01-06-6/+7
| | | | | | | Twitter sends us our real username on OAuth completion, which is then used instead of the username supplied by the user. Identi.ca doesn't supply this info so BitlBee would instead replace td->user with a NULL pointer.
* Extend twitter_message_id_from_command_arg() a little bit and use it for allWilmer van der Gaast2012-12-02-88/+66
| | | | | commands. Also fixed reply command in strict commands mode.
* Only a few commands use twitter_message_id_from_command_arg(), others wereWilmer van der Gaast2012-11-25-4/+4
| | | | | still using a decimal scanf format string. Messy code duplication. :-(
* Use hex for show_ids, but stick to the 2-char maximum. a 256-message backlogWilmer van der Gaast2012-11-25-2/+2
| | | | | really should be enough.
* To address #991, adding a strict commands mode, where one has to use "post"Wilmer van der Gaast2012-11-25-13/+25
| | | | | to post tweets.
* Finally cleaned up the show-tweet functions.Wilmer van der Gaast2012-11-25-1/+1
|
* Fixing two oopses from my last commit.Wilmer van der Gaast2012-11-25-1/+1
|
* Changed mode/room management a little bit.Wilmer van der Gaast2012-11-25-2/+40
|
* s/twitter_msg/twitter_log/ and use it in a few more places.Wilmer van der Gaast2012-11-25-16/+25
|
* Minor rework: Always fill td->log now and use it not just for show_ids, butWilmer van der Gaast2012-11-25-3/+2
| | | | | | | | | | also for stream deduplication. Also, drop tweets from unknown people unless fetch_mentions is set. The stream will feed us that spam either way but not everyone wants to see it. Last, fixing a bug where in streaming mode, per-user last tweet times were no longer getting tracked.
* Add help info for "stream" setting. Also, disable it for non-Twitter accounts.Wilmer van der Gaast2012-11-24-5/+16
|
* Extend keepalive code to time out connections when pings don't getWilmer van der Gaast2012-11-11-0/+1
| | | | | acknowledged, using this for Twitter streams and MSN so far.
* Mostly finished HTTP streaming support: Shrink the buffer and add aWilmer van der Gaast2012-11-11-0/+1
| | | | | http_close().
* Showing tweets now, and leaking less memory. Still lots of cleanup leftWilmer van der Gaast2012-11-11-5/+16
| | | | | to do.
* Merge Twitter favourite command from Flexo/#983. Leaving out the unfavouriteWilmer van der Gaast2012-09-15-15/+33
| | | | | | | | command for reasons given there. At this point there are loads of command and stuff is getting a little messy maybe.. :-/
* Twitter module cleanup: Both Twitter and identi.ca "modules" support OAuthWilmer van der Gaast2012-09-15-4/+1
| | | | | now.
* Fix memory leak. #985Wilmer van der Gaast2012-08-19-0/+1
|
* Fixed compiler warning in twitter.c report-spam code.Wilmer van der Gaast2012-06-04-2/+1
|
* Turn show_ids on by default. I need to do some more things to get everyoneWilmer van der Gaast2012-04-14-1/+1
| | | | | to do proper replies and stop annoying other Twitter users.
* Merging report-spam patch for Twitter from Flexo. #923Wilmer van der Gaast2012-03-12-0/+19
|
* Applied patch from #895, making show_old_mentions an integer setting insteadWilmer van der Gaast2012-02-10-1/+1
| | | | | of boolean so you can change the number of mentions being fetched.
* Take t.co URL lengthe^Wshortening into account when counting message lengthWilmer van der Gaast2012-02-08-1/+35
| | | | | | | before posting a Twitter message. Disable this functionality by default for identi.ca accounts. Hardcode post-t.co URL length to 20 since it's probably not going to change any time soon. Bug #855. Patch by Artem Savkov, thanks!
* add 'strip_newlines' setting to TwitterDaniel Albers2012-01-13-0/+2
|
* Fixed a bug that probably (can't test this now since it's down) broke OAuthWilmer van der Gaast2011-12-21-1/+1
| | | | | setup for identi.ca. Turning on oauth for identi.ca accounts by default now.
* Make it easier to add OAuth-authenticated accounts without having to typeWilmer van der Gaast2011-12-21-2/+2
| | | | | a bogus password.
* Support HTTP/1.1 redirect status codes and use HTTPS for OAuth setup. ThisWilmer van der Gaast2011-12-11-4/+4
| | | | | | is required for identi.ca and really should be done for Twitter as well. Twitter OAuth is still broken though, it seems to disagree about signatures.
* Merging Twitter-mentions patch from meh. Bug #663.Wilmer van der Gaast2011-08-25-14/+23
|
* Better cleanup of status IDs in Twitter commands. Stop using that sillyWilmer van der Gaast2011-08-17-13/+20
| | | | | | g_ascii_strtoull() everywhere. This should fix some accidental Tweet incidents.
* To reduce ambiguity, allow using a # to specify Tweet ID's when doing retweets.Wilmer van der Gaast2011-08-17-1/+5
|\ | | | | | | | | Patch from Jasper Spaans.
| * Make it easier to retweet by id.Jasper Spaans2011-08-03-1/+5
|/ | | | | | Currently, typing "rt 24" would retweet the last message from @24. This patch allows one to retweet the tweet with id 24 by typing "rt #24".
* Use sscanf, not strtoull. G_GUINT64_FORMAT really makes format strings lookWilmer van der Gaast2011-06-12-2/+2
| | | | | so much better.
* Oops. prefix shouldn't be just "ca" for identi.ca.Wilmer van der Gaast2011-06-11-1/+3
|
* Change the default base_url to something that works. Change the default forWilmer van der Gaast2011-06-11-9/+22
| | | | | | identi.ca to HTTPS while I'm at it. Pretty important since I can't use OAuth for it yet.
* Use /friends/ids and /users/lookup instead of /statuses/friends to get aWilmer van der Gaast2011-06-11-4/+6
| | | | | | list of contacts at login time. Still depends on adding an API version number to base_url though.
* Re-indent Twitter code. It just lacks *any* kind of consistency. Flags used:Wilmer van der Gaast2011-06-11-298/+253
| | | | | | -i8 -kr -ts8 -ut -l100 Because K&R isn't so bad after all but spaces are definitely evil. (Not that GNU indent understands how to use tabs, oh well.)
* Dirty workaround: Don't download the contact list for now as TwitterWilmer van der Gaast2011-06-09-0/+1
| | | | | | | deprecated the API call BitlBee uses for that. The contact list will be updated as tweets come in. Real fix will come in later, at least this lets everyone log in again.
* Try to show better Twitter error messages. Sadly this doesn't always workWilmer van der Gaast2011-04-18-2/+2
| | | | | | since Twitter can't seem to make up their mind on the formatting of their error responses, sometimes using XML and sometimes plain text.
* Check td->log everywhere before using it..Wilmer van der Gaast2011-03-31-2/+2
|
* Also use the short IDs for a new reply command. Couldn't think of a sane wayWilmer van der Gaast2011-03-29-4/+35
| | | | | | to support "xx:" or "@xx" since it would also become too ambiguous. Only thing left to do now is documenting it.
* Allow using the new 2-digit id's for retweets.Wilmer van der Gaast2011-03-29-0/+4
|
* For #721, add the numbers in front of tweets if show_ids is enabled. LeftWilmer van der Gaast2011-03-29-0/+7
| | | | | to do: Document the feature and allow using the numbers in rt/replies.
* Tweaks to allow authenticating to identi.ca with OAuth. Doesn't seem to workWilmer van der Gaast2011-03-27-2/+24
| | | | | | | completely for whatever the reason may be (invalid signature). I give up for now. Stuff does actually work if you generate access tokens using different software so BitlBee's definitely able to generate good signatures.
* Twitter: Warn the user if the OAuth username and the configured usernameWilmer van der Gaast2011-03-07-0/+10
| | | | | | don't match. This is not a real problem but can be confusing if you don't expect it.