Changeset db4cd40 for protocols/purple
- Timestamp:
- 2009-10-11T12:22:23Z (15 years ago)
- Branches:
- master
- Children:
- 0f7ee7e5
- Parents:
- 4f103ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/purple/purple.c
r4f103ea rdb4cd40 85 85 static void purple_logout( struct im_connection *ic ) 86 86 { 87 PurpleAccount *pa = ic->proto_data; 88 89 purple_account_set_enabled( pa, "BitlBee", FALSE ); 87 90 purple_connections = g_slist_remove( purple_connections, ic ); 91 purple_account_destroy( pa ); 88 92 } 89 93 … … 198 202 { 199 203 PurpleBuddy *bud = (PurpleBuddy*) node; 200 struct im_connection *ic = purple_ic_by_pa( bud->account ); 201 202 if( node->type == PURPLE_BLIST_BUDDY_NODE && ic != NULL ) 203 { 204 205 if( node->type == PURPLE_BLIST_BUDDY_NODE ) 206 { 207 struct im_connection *ic = purple_ic_by_pa( bud->account ); 208 209 if( ic == NULL ) 210 return; 211 204 212 imcb_add_buddy( ic, bud->name, NULL ); 205 213 if( bud->server_alias ) … … 211 219 { 212 220 PurpleBuddy *bud = (PurpleBuddy*) node; 213 struct im_connection *ic = purple_ic_by_pa( bud->account );214 215 if( node->type == PURPLE_BLIST_BUDDY_NODE && ic != NULL )216 {221 222 if( node->type == PURPLE_BLIST_BUDDY_NODE ) 223 { 224 struct im_connection *ic = purple_ic_by_pa( bud->account ); 217 225 PurpleStatus *as; 218 226 int flags = 0; 219 227 228 if( ic == NULL ) 229 return; 230 220 231 flags |= purple_presence_is_online( bud->presence ) ? OPT_LOGGED_IN : 0; 221 232 flags |= purple_presence_is_available( bud->presence ) ? 0 : OPT_AWAY; … … 231 242 { 232 243 PurpleBuddy *bud = (PurpleBuddy*) node; 233 struct im_connection *ic = purple_ic_by_pa( bud->account ); 234 235 if( node->type == PURPLE_BLIST_BUDDY_NODE && ic != NULL ) 236 { 244 245 if( node->type == PURPLE_BLIST_BUDDY_NODE ) 246 { 247 struct im_connection *ic = purple_ic_by_pa( bud->account ); 248 249 if( ic == NULL ) 250 return; 251 237 252 imcb_remove_buddy( ic, bud->name, NULL ); 238 253 }
Note: See TracChangeset
for help on using the changeset viewer.