aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter.c
Commit message (Collapse)AuthorAgeLines
* twitter: Fix a couple of leaks of mutes_ids and retweets_idsdequis2016-04-17-0/+6
| | | | | | | Just freeing the list on logout and when removing items from them. Also remove the "checking mutes" debug which is disproportionately noisy compared to the rest of the protocol.
* Add mute and unmute commands.Flexo2016-03-31-0/+6
|
* Honour twitter's mutes and "hide retweets from this user" settings.Flexo2016-03-23-0/+2
|
* twitter.c: Squelch an unused variable warningDennis Kaarsemaker2016-02-26-1/+1
| | | | 9456255 made the variable 's' unused but failed to remove it.
* Change twitter url length to 23 instead of 22Vegard LangÄs2016-02-09-6/+1
|
* twitter: Fix some nitpicky issues reported by coveritydequis2015-10-08-6/+6
| | | | | | Mostly minor rare leaks that happen in error conditions, and one dereference before null check in twitter_logout (the null check is probably the wrong one there, but it doesn't hurt to keep it)
* twitter: show full url in the url command, with usernamedequis2015-06-08-5/+1
| | | | | | | By asking the server for the username. Storing the username somewhere would have made sense, but this command isn't going to be used very often, so, whatever.
* twitter: fix leak of the letter "s" in twitter_url_len_diffdequis2015-06-08-2/+6
| | | | | | | | Yeah, just the letter s from "https", and a null byte. Really critical stuff. You'd have to post a million tweets to even notice this at all.
* twitter: add twitter_log_local_user back (oops)dequis2015-05-30-0/+2
| | | | | Accidentally nuked it while resolving merge conflicts of a different branch.
* Move twitter_parse_id() to parse_int64() in misc.cdequis2015-05-30-19/+2
|
* twitter: split length check function into twitter_message_lendequis2015-05-07-4/+11
| | | | | | Mostly to be able to test twitter_message_len externally against the twitter-text conformance tests (the current version definitely fails - it doesn't do utf8 normalization)
* Make replies to self work in Twitter.Wilmer van der Gaast2015-05-03-4/+12
| | | | | Difficult because there's no bee_user struct pointing at the user themselves so instead just fake one for very limited use.
* Add "url" command to Twitter module to get web URL for a Tweet.Wilmer van der Gaast2015-05-02-0/+13
|
* twitter: Fix twitter_parse_id to accept 00 as a valid tweetdequis2015-03-10-7/+8
| | | | | | Also fix the endptr condition which was backwards and resulted in every tweet id getting rejected, but you didn't see that one, this commit really is about the tweet id 00 which is the most important tweet id.
* twitter_parse_id function, with better error handling than sscanf()dequis2015-02-22-3/+16
| | | | | Fixes issues such as parsing "reply eo" as replying to "0e", as reported by torrancew
* Reindent everything to K&R style with tabsIndent2015-02-20-102/+153
| | | | | | | Used uncrustify, with the configuration file in ./doc/uncrustify.cfg Commit author set to "Indent <please@skip.me>" so that it's easier to skip while doing git blame.
* Revert "Twitter format strings"dequis2015-02-20-4/+0
| | | | | | This reverts commit ce402b20d82ec323e6bd5e306de934773590742d. See discussion in PR #10 for more details.
* Twitter format stringsWilliam Pettersson2015-01-26-0/+4
| | | | | | | | | | | Allow users to specify how tweets should be displayed 3 new settings are available to set how tweets are displayed: - twitter_format_string for normal tweets - retweet_format_string for retweets - reply_format_string for replies For full documentation see the help files
* twitter: Add raw reply supportWilliam Pettersson2015-01-26-0/+9
| | | | | | | By default, "reply" prepends the username of the tweet being replied to. This adds support for a "rawreply" command which does not prepend this username. This is useful for "replying" to your own tweet to maintain a chain of tweets on a singular topic.
* twitter: implemented filter based group chatsjgeboski2015-01-25-2/+261
| | | | | | | | | | | | | | | | | | | | | Filter group chats allow for the ability to read the tweets of select users without actually following the users, and/or track keywords or hashtags. A filter group chat can have multiple users, keywords, or hashtags. These users, keywords, or hashtags can span multiple group chats. This allows for rather robust filter organization. The underlying structure for the filters is based on linked list, as using the glib hash tables requires >= glib-2.16 for sanity. Since the glib requirement of bitlbee is only 2.14, linked list are used in order to prevent an overly complex implementation. The idea for this patch was inspired by Artem Savkov's "Twitter search channels" patch. In order to use the filter group chats, a group chat must be added to the twitter account. The channel room name is either follow:username, track:keyword, and/or track:#hashtag. Multiple elements can be used by separating each element by a semicolon.
* Merging random other fixes/cleanups.Wilmer van der Gaast2015-01-17-0/+7
|\
| * twitter: start stream from last tweet on connect/reconnectroger2015-01-16-0/+7
|/ | | | | This works by setting the last_tweet hidden account setting to the ID of the last shown tweet.
* Replace isdigit/isalpha/.../tolower/toupper with glib variantsdequis2015-01-16-2/+2
| | | | | | | | | | | This fixes warnings about passing signed chars to them (apparently they are implemented as macros that do array lookups without checks in some platforms, yay) Specifically: functions=isalnum|isalpha|isdigit|isspace|isxdigit|tolower|toupper sed -ir "s/$functions/g_ascii_&/g" **/*.c
* twitter: Add support for The United States of Americadequis2014-09-27-1/+3
| | | | Land of the Free, Home of the Brave
* Default twitter's show_old_mentions to 0dequis2014-09-27-1/+1
|
* 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
|