Changes in / [3709301:4346c3f4]
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
bitlbee.h
r3709301 r4346c3f4 35 35 36 36 #define PACKAGE "BitlBee" 37 #define BITLBEE_VERSION "1.2. 7"37 #define BITLBEE_VERSION "1.2.8" 38 38 #define VERSION BITLBEE_VERSION 39 39 #define BITLBEE_VER(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 40 #define BITLBEE_VERSION_CODE BITLBEE_VER(1, 2, 7)40 #define BITLBEE_VERSION_CODE BITLBEE_VER(1, 2, 8) 41 41 42 42 #define MAX_STRING 511 -
debian/changelog
r3709301 r4346c3f4 7 7 8 8 -- Wilmer van der Gaast <wilmer@gaast.net> Sat, 05 Jun 2010 15:16:38 +0100 9 10 bitlbee (1.2.8-1) unstable; urgency=low 11 12 * New upstream version. 13 14 -- Wilmer van der Gaast <wilmer@gaast.net> Sat, 10 Jul 2010 13:54:55 +0100 9 15 10 16 bitlbee (1.2.7-1) unstable; urgency=high -
doc/CHANGES
r3709301 r4346c3f4 3 3 4 4 http://bugs.bitlbee.org/bitlbee/timeline?daysback=90&changeset=on 5 6 Version 1.2.8: 7 - Now always using the AIM-style authentication method for OSCAR connections, 8 even when connecting to ICQ. This solves login issues some people were 9 having. (If you have problems, try changing the old_icq_auth setting.) 10 - Twitter: 11 * Allow changing the Twitter API base URL so the module can also be used 12 for identi.ca or any other compatible network. 13 * Fetch the full list of Twitter contacts instead of slowly adding all 14 contacts as they post a message. 15 * Fixed message length counting. 16 * Allow following/unfollowing people using the usual add/remove commands. 17 * Better error reporting. 18 - Added a user_agent setting to the Jabber module to get around artificial 19 client restrictions. 20 - Allow nick changes (although only before register/identify). 21 - Some more minor bugfixes/etc. 22 23 Finished 4 Jul 2010 5 24 6 25 Version 1.2.7: -
doc/user-guide/commands.xml
r3709301 r4346c3f4 531 531 </bitlbee-setting> 532 532 533 <bitlbee-setting name="base_url" type="string" scope="account"> 534 <default>http://twitter.com</default> 535 536 <description> 537 <para> 538 There are more services that understand the Twitter API than just Twitter.com. BitlBee can connect to all Twitter API implementations. 539 </para> 540 541 <para> 542 For example, set this setting to <emphasis>http://identi.ca/api</emphasis> to use Identi.ca. 543 </para> 544 545 <para> 546 Keep two things in mind: When not using Twitter, you <emphasis>must</emphasis> also disable the <emphasis>oauth</emphasis> setting as it currently only works with Twitter. If you're still having issues, make sure there is <emphasis>no</emphasis> slash at the end of the URL you enter here. 547 </para> 548 </description> 549 </bitlbee-setting> 550 533 551 <bitlbee-setting name="charset" type="string" scope="global"> 534 552 <default>utf-8</default> -
lib/http_client.c
r3709301 r4346c3f4 35 35 static gboolean http_ssl_connected( gpointer data, void *source, b_input_condition cond ); 36 36 static gboolean http_incoming_data( gpointer data, int source, b_input_condition cond ); 37 38 39 void *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data ) 37 static void http_free( struct http_request *req ); 38 39 40 struct http_request *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data ) 40 41 { 41 42 struct http_request *req; … … 67 68 req->request = g_strdup( request ); 68 69 req->request_length = strlen( request ); 70 req->redir_ttl = 3; 69 71 70 72 return( req ); 71 73 } 72 74 73 void*http_dorequest_url( char *url_string, http_input_function func, gpointer data )75 struct http_request *http_dorequest_url( char *url_string, http_input_function func, gpointer data ) 74 76 { 75 77 url_t *url = g_new0( url_t, 1 ); … … 311 313 } 312 314 313 if( req->status_code == 301 || req->status_code == 302)315 if( ( req->status_code == 301 || req->status_code == 302 ) && req->redir_ttl-- > 0 ) 314 316 { 315 317 char *loc, *new_request, *new_host; … … 445 447 } 446 448 447 void http_free( struct http_request *req )449 static void http_free( struct http_request *req ) 448 450 { 449 451 g_free( req->request ); -
lib/http_client.h
r3709301 r4346c3f4 61 61 int finished; /* Set to non-0 if the request was completed 62 62 successfully. */ 63 int redir_ttl; /* You can set it to 0 if you don't want 64 http_client to follow them. */ 63 65 64 66 http_input_function func; … … 79 81 you want to add some extra headers. As you can see, HTTPS connections 80 82 are also supported (using ssl_client). */ 81 void *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data ); 82 void *http_dorequest_url( char *url_string, http_input_function func, gpointer data ); 83 84 void http_free( struct http_request *req ); 83 struct http_request *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data ); 84 struct http_request *http_dorequest_url( char *url_string, http_input_function func, gpointer data ); -
protocols/oscar/oscar.c
r3709301 r4346c3f4 2531 2531 struct groupchat *c; 2532 2532 2533 chatname = g_strdup_printf("%s%s _%d", isdigit(*ic->acc->user) ? "icq_" : "",2533 chatname = g_strdup_printf("%s%s%d", isdigit(*ic->acc->user) ? "icq" : "", 2534 2534 ic->acc->user, chat_id++); 2535 2535 -
protocols/twitter/twitter_lib.c
r3709301 r4346c3f4 36 36 #include <errno.h> 37 37 38 /* GLib < 2.12.0 doesn't have g_ascii_strtoll(), work around using system strtoll(). */ 39 /* GLib < 2.12.4 can be buggy: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488013 */ 40 #if !GLIB_CHECK_VERSION(2,12,5) 41 #include <stdlib.h> 42 #include <limits.h> 43 #define g_ascii_strtoll strtoll 44 #endif 45 38 46 #define TXL_STATUS 1 39 47 #define TXL_USER 2 … … 66 74 static void txu_free(struct twitter_xml_user *txu) 67 75 { 76 if (txu == NULL) 77 return; 68 78 g_free(txu->name); 69 79 g_free(txu->screen_name); … … 89 99 { 90 100 GSList *l; 101 if (txl == NULL) 102 return; 91 103 for ( l = txl->list; l ; l = g_slist_next(l) ) 92 104 if (txl->type == TXL_STATUS) … … 473 485 { 474 486 status = l->data; 487 if (status->user == NULL || status->text == NULL) 488 continue; 489 475 490 twitter_add_buddy(ic, status->user->screen_name, status->user->name); 476 491 -
storage_xml.c
r3709301 r4346c3f4 59 59 char *given_pass; 60 60 xml_pass_st pass_st; 61 int unknown_tag; 61 62 }; 62 63 … … 86 87 irc_t *irc = xd->irc; 87 88 88 if( g_strcasecmp( element_name, "user" ) == 0 ) 89 if( xd->unknown_tag > 0 ) 90 { 91 xd->unknown_tag ++; 92 } 93 else if( g_strcasecmp( element_name, "user" ) == 0 ) 89 94 { 90 95 char *nick = xml_attr( attr_names, attr_values, "nick" ); … … 267 272 else 268 273 { 274 xd->unknown_tag ++; 275 irc_usermsg( irc, "Warning: Unknown XML tag found in configuration file (%s). " 276 "This may happen when downgrading BitlBee versions. " 277 "This tag will be skipped and the information will be lost " 278 "once you save your settings.", element_name ); 279 /* 269 280 g_set_error( error, G_MARKUP_ERROR, G_MARKUP_ERROR_UNKNOWN_ELEMENT, 270 281 "Unkown element: %s", element_name ); 282 */ 271 283 } 272 284 } … … 276 288 struct xml_parsedata *xd = data; 277 289 278 if( g_strcasecmp( element_name, "setting" ) == 0 && xd->current_setting ) 290 if( xd->unknown_tag > 0 ) 291 { 292 xd->unknown_tag --; 293 } 294 else if( g_strcasecmp( element_name, "setting" ) == 0 && xd->current_setting ) 279 295 { 280 296 g_free( xd->current_setting );
Note: See TracChangeset
for help on using the changeset viewer.