Changeset b3117f2 for protocols/purple
- Timestamp:
- 2009-11-23T22:58:20Z (15 years ago)
- Branches:
- master
- Children:
- 4e04194
- Parents:
- 6967d01
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/purple/purple.c
r6967d01 rb3117f2 22 22 \***************************************************************************/ 23 23 24 #include "bitlbee.h" 25 24 26 #include <glib.h> 25 27 #include <purple.h> 26 27 #include "bitlbee.h"28 28 29 29 GSList *purple_connections; … … 82 82 default: 83 83 fprintf( stderr, "Setting with unknown type: %s (%d)\n", name, purple_account_option_get_type( o ) ); 84 name = NULL; 84 85 } 85 86 86 if( def!= NULL )87 if( name != NULL ) 87 88 { 88 89 s = set_add( &acc->set, name, def, eval, acc ); … … 211 212 static void purple_add_buddy( struct im_connection *ic, char *who, char *group ) 212 213 { 214 PurpleBuddy *pb; 215 216 pb = purple_buddy_new( (PurpleAccount*) ic->proto_data, who, NULL ); 217 purple_blist_add_buddy( pb, NULL, NULL, NULL ); 218 purple_account_add_buddy( (PurpleAccount*) ic->proto_data, pb ); 213 219 } 214 220 215 221 static void purple_remove_buddy( struct im_connection *ic, char *who, char *group ) 216 222 { 223 PurpleBuddy *pb; 224 225 pb = purple_find_buddy( (PurpleAccount*) ic->proto_data, who ); 226 if( pb != NULL ) 227 { 228 purple_account_remove_buddy( (PurpleAccount*) ic->proto_data, pb, NULL ); 229 purple_blist_remove_buddy( pb ); 230 } 217 231 } 218 232 … … 343 357 PurpleBuddy *bud = (PurpleBuddy*) node; 344 358 359 /* 345 360 if( node->type == PURPLE_BLIST_BUDDY_NODE ) 346 361 { … … 352 367 imcb_remove_buddy( ic, bud->name, NULL ); 353 368 } 369 */ 354 370 } 355 371
Note: See TracChangeset
for help on using the changeset viewer.