aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* 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.
* Importing json.c UTF-8 encoding fix from upstream. Not importing theWilmer van der Gaast2012-12-01-3/+4
| | | | | | | | strto(d|l) fix because I can just use GLib instead of reinventing the wheel. This should fix corruption issues with tweets in Cyrillic. I've double- checked this code against http://en.wikipedia.org/wiki/UTF-8 now and it looks correct to me.
* Fixing integer size issue in JSON parser: Although I've changed the integerWilmer van der Gaast2012-11-27-1/+1
| | | | | | type to long long, the parser was still using strtol to convert numbers, truncating large numbers to LONG_MAX. Bug found by Artem Savkov, thanks!
* Have root confirm some commands that so far gave no feedback at all, sinceWilmer van der Gaast2012-11-25-5/+30
| | | | | "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-14/+27
| | | | | to post tweets.
* Fixed one potential memory leak, and re-remembered that for GLib + valgrindWilmer van der Gaast2012-11-25-1/+4
| | | | | 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.
* Clean up streaming HTTP event handler, which should fix crash-bugs with GLib.Wilmer van der Gaast2012-11-25-0/+3
| | | | | Forgot to do this so far because my libevent code let me get away with it.
* Fix documentation for show_ids setting, it's on by default for a while already.Wilmer van der Gaast2012-11-25-1/+1
|
* 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.
* Increasing http_client buffersize to 4KB. You'd think that with things likeWilmer van der Gaast2012-11-24-1/+1
| | | | | | | | | MTU in mind it's not a very useful change, but I seem to be getting data in bigger chunks most of the time. Likely because with SSL you have record (?) boundaries and compression. This should reduce I/O overhead just a little bit.
* Add help info for "stream" setting. Also, disable it for non-Twitter accounts.Wilmer van der Gaast2012-11-24-5/+31
|
* Fixing one obvious memory leak.Wilmer van der Gaast2012-11-24-0/+2
|
* Some code for handling disconnect/event messages.Wilmer van der Gaast2012-11-20-0/+41
|
* Merge mainline.Wilmer van der Gaast2012-11-17-130/+65
|\
| * Remove ssl_bogus.c, it really shouldn't be used anymore since it builds aWilmer van der Gaast2012-11-12-92/+2
| | | | | | | | | | next-to-useless binary.
| * Cleaning up struct im_connection a little bit.Wilmer van der Gaast2012-11-11-18/+0
| |
| * SSL fixes from Michal Suchanek.Wilmer van der Gaast2012-10-30-4/+6
| |
| * Debian packaging changes: Depend on different gnutls dev package.Wilmer van der Gaast2012-10-30-1/+9
| |
| * Update authors files to reflect the current state of things. I'd like toWilmer van der Gaast2012-10-29-16/+25
| | | | | | | | | | | | | | | | thank Jelmer and Maurits for their past contributions. Also, list Miklos, pesco, Geert, ulim and Marijn who have done some substantial contributions (recently).
| * Merging XEP-0184 support patch from Michael Stapelberg, #999.Wilmer van der Gaast2012-10-28-0/+24
| |\
| | * Implement jabber message receipts (XEP-0184)Michael Stapelberg2012-10-17-0/+31
| | | | | | | | | | | | | | | | | | | | | This change will make BitlBee acknowledge messages when requested. It will not request message receipts from other clients, mainly because I am not sure if this feature can be mapped to IRC cleanly.
* | | Decode incoming DMs.Wilmer van der Gaast2012-11-12-25/+76
| | |
* | | Bugfix: Two commits ago I broke cleanup of the account_on_timeout() handler,Wilmer van der Gaast2012-11-12-2/+1
| | | | | | | | | | | | | | | taking down every IM connection 2m after setup.
* | | Fixed valgrind warnings in JSON_O_FOREACH.Wilmer van der Gaast2012-11-12-3/+4
| | |
* | | Extend keepalive code to time out connections when pings don't getWilmer van der Gaast2012-11-11-2/+31
| | | | | | | | | | | | | | | acknowledged, using this for Twitter streams and MSN so far.
* | | Detect and handle streaming connection loss.Wilmer van der Gaast2012-11-11-0/+13
| | |
* | | Tiny cleanup. Fixing some memory leaks (why did I not notice so far thatWilmer van der Gaast2012-11-11-14/+12
| | | | | | | | | | | | | | | those free()s were commented out?).
* | | Mostly finished HTTP streaming support: Shrink the buffer and add aWilmer van der Gaast2012-11-11-3/+27
| | | | | | | | | | | | | | | http_close().
* | | Realised I don't need delimited=length at all, objects are guaranteed to beWilmer van der Gaast2012-11-11-32/+22
| | | | | | | | | | | | | | | CRLF-terminated.
* | | Showing tweets now, and leaking less memory. Still lots of cleanup leftWilmer van der Gaast2012-11-11-31/+73
| | | | | | | | | | | | | | | to do.
* | | Very immature code for reading from the streaming API. It reads from aWilmer van der Gaast2012-11-10-14/+93
| | | | | | | | | | | | | | | | | | fixed URL and tried to parse individual JSON objects. Not doing anything useful with it.
* | | Reworked http_client a little bit to support streaming besides just bufferingWilmer van der Gaast2012-11-10-62/+131
| | | | | | | | | | | | | | | a complete response before giving it back to the caller.
* | | Removed xmltree dependency entirely.Wilmer van der Gaast2012-11-10-22/+17
| | |
* | | Fixed the last parser (generic handler which just remembers status IDs).Wilmer van der Gaast2012-11-09-4/+3
| | | | | | | | | | | | | | | | | | xmltree.h include can almost be removed, it's just used for return values now.
* | | Fix compiler warning (missed glib include in json_util).Wilmer van der Gaast2012-11-09-0/+1
| | |
* | | One difference in json.h: use "long long" instead of "long" for integerWilmer van der Gaast2012-11-09-1/+1
| | | | | | | | | | | | | | | | | | types, or it might be too small to contain Twitter message IDs on for example GCC+i386.
* | | Updated error response parsing. Also, use this for 401 responses so for exampleWilmer van der Gaast2012-11-09-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | the auth errors caused by NTP desync are clearer: <root> twitter - Login error: Authentication failure (401 Unauthorized (Timestamp out of bounds))
* | | Getting better. Corruption fixed, fetching of mentions fixed, error handlingWilmer van der Gaast2012-11-09-7/+15
| | | | | | | | | | | | | | | "fixed".
* | | It logs in and fetches statuses! \o/ But, some corruption..Wilmer van der Gaast2012-11-08-64/+98
| | |
* | | Type safety check.Wilmer van der Gaast2012-11-05-0/+4
| | |
* | | Can log in now. Fails to fetch timelines though, which is going to be theWilmer van der Gaast2012-11-05-72/+42
| | | | | | | | | | | | | | | more annoying part anyway. Plus, I want streaming API stuff instead.
* | | Add json_util.c with helper functions. Keeping them in a separate file toWilmer van der Gaast2012-11-05-1/+79
| | | | | | | | | | | | | | | avoid making *any* changes to the third-party json.c.