aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter
Commit message (Collapse)AuthorAgeLines
* Make replies to self work in Twitter.Wilmer van der Gaast2015-05-03-5/+25
| | | | | Difficult because there's no bee_user struct pointing at the user themselves so instead just fake one for very limited use.
* Parsing of "retweets with comment". Not documented by Twitter so good luck.Wilmer van der Gaast2015-05-03-17/+37
| | | | Also, fix bug in parsing of entities in DMs.
* Add "url" command to Twitter module to get web URL for a Tweet.Wilmer van der Gaast2015-05-02-0/+13
|
* twitter: fix _last_tweet setting, which broke during a mergedequis2015-03-13-1/+1
| | | | | | Commit eb4ad8d (a merge commit, yes) changed it to _last_tweet and missed one of the three. Not entirely sure if wilmer's fault, could be mine when I did the merge of his merge on my side. Whatever.
* Various user experience/error reporting improvementsdequis2015-03-10-0/+3
| | | | | | | | | | | - Show version as part of the initial message of &bitlbee - Use g_strerror() to show actual errors when saving xml configs - Only show "The nick is (probably) not registered" for ENOENT, use g_strerror() for the rest of OS errors when loading xml configs - Show "Protocol not found: <name>" when find_protocol() returns null, useful when the user uninstalls a plugin accidentally. - Suggest the user to check the system clock when getting error 401 from the twitter stream (other REST endpoints show a better error message)
* 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-317/+452
| | | | | | | 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-52/+15
| | | | | | This reverts commit ce402b20d82ec323e6bd5e306de934773590742d. See discussion in PR #10 for more details.
* Twitter format stringsWilliam Pettersson2015-01-26-15/+52
| | | | | | | | | | | 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-7/+503
| | | | | | | | | | | | | | | | | | | | | 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-12/+24
|\
| * twitter: minor cleanup, use G_G(U)INT64_FORMAT instead of castingdequis2015-01-16-11/+11
| |
| * twitter: start stream from last tweet on connect/reconnectroger2015-01-16-1/+13
|/ | | | | 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: Use g_strcasecmp for screen_namedequis2014-11-24-4/+4
| | | | | | Fixes a few minor bugs with users who have uppercase characters in nicks (see trac ticket 1138). Most notably, the "follow" command showing no feedback that a user was followed
* 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 json-parser code to git rev 11a80f389769d1f66ca7fbe64ad89c82d3ba4ba9.Wilmer van der Gaast2014-02-13-4/+4
| | | | | | Few BitlBee-specific diffs now. Annoyingly need to link to libm now for the use of the function pow() since the lib now does its own number parsing...
* 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-7/+8
|
* Use HTTP/1.1 by default in the Twitter module, and stick to the initiallyWilmer van der Gaast2013-06-16-1/+1
| | | | | used protocol version when internally handling redirects.
* 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.
* Apparently Twitter API 1.1 is SSL-only. *sigh*Wilmer van der Gaast2013-05-23-1/+1
|
* Merging "storage" branch which I wrote long ago. It separates generation ofWilmer van der Gaast2013-04-20-8/+0
|\ | | | | | | | | | | XML-formatted user configs from disk I/O so we can try to start using other mechanisms to store them (a REST API or something, for example).
| * Remove two hacks for some glib<2.14 versions that are no longer supported.Wilmer van der Gaast2012-06-04-8/+0
| |
* | I'm still bored on a long flight. Wrote a script to automatically updateWilmer van der Gaast2013-02-21-2/+2
| | | | | | | | | | | | | | 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 Twitter favourite command. Its syntax was silently changed in the 1.1Wilmer van der Gaast2013-01-14-8/+10
| | | | | | | | | | API. A full list of diffs would be helpful, guys...
* | 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.
* | I suck. This will teach me not to combine logging and actual work in sillyWilmer van der Gaast2012-12-25-1/+1
| | | | | | | | | | ways.
* | Whoops, remove those debugging printfs as I intended to do before merging.Wilmer van der Gaast2012-12-24-9/+1
| |
* | Updated report_spam API URL to 1.1. Fixes #1011.Wilmer van der Gaast2012-12-22-1/+1
| |
* | For finding since_id, don't use RT original IDs of course. :-/ This fixesWilmer van der Gaast2012-12-21-4/+3
| | | | | | | | | | duplicate-tweet issues in non-streaming mode.
* | Don't hide own tweets in streaming mode with fetch_mentions off, and moveWilmer van der Gaast2012-12-03-4/+5
| | | | | | | | | | txs_free() to the right place - fixes a memory leak.
* | 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.
* | Have root confirm some commands that so far gave no feedback at all, sinceWilmer van der Gaast2012-11-25-5/+28
| | | | | | | | | | "no news is good news" can be a little confusing.
* | Only a few commands use twitter_message_id_from_command_arg(), others wereWilmer van der Gaast2012-11-25-6/+15
| | | | | | | | | | 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-5/+5
| | | | | | | | | | 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.
* | Fixed one potential memory leak, and re-remembered that for GLib + valgrindWilmer van der Gaast2012-11-25-1/+0
| | | | | | | | | | you REALLY need to set G_SLICE=always-malloc. Argh!
* | Finally cleaned up the show-tweet functions.Wilmer van der Gaast2012-11-25-78/+69
| |
* | Fixing two oopses from my last commit.Wilmer van der Gaast2012-11-25-2/+3
| |
* | Changed mode/room management a little bit.Wilmer van der Gaast2012-11-25-48/+51
| |
* | s/twitter_msg/twitter_log/ and use it in a few more places.Wilmer van der Gaast2012-11-25-22/+37
| |
* | Show DMs the right way. With mode=many and show_ids=off they'll look justWilmer van der Gaast2012-11-25-6/+12
| | | | | | | | | | | | like tweets but that's what you get with bad settings.. Also, don't show DMs from ourselves.
* | Minor rework: Always fill td->log now and use it not just for show_ids, butWilmer van der Gaast2012-11-25-50/+86
| | | | | | | | | | | | | | | | | | | | 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.