Changeset 6bbb939 for protocols/jabber
- Timestamp:
- 2007-04-16T04:01:13Z (18 years ago)
- Branches:
- master
- Children:
- cfc8d58
- Parents:
- 84b045d
- Location:
- protocols/jabber
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/iq.c
r84b045d r6bbb939 388 388 just try to handle this as well as we can. */ 389 389 jabber_buddy_remove_bare( ic, jid ); 390 serv_got_update( ic, jid, 0, 0, 0, 0, 0, 0);390 imcb_buddy_status( ic, jid, 0, NULL, NULL ); 391 391 /* FIXME! */ 392 392 } -
protocols/jabber/presence.c
r84b045d r6bbb939 38 38 if( type == NULL ) 39 39 { 40 int is_away = 0; 41 40 42 if( !( bud = jabber_buddy_by_jid( ic, from, GET_BUDDY_EXACT | GET_BUDDY_CREAT ) ) ) 41 43 { … … 52 54 53 55 if( ( c = xt_find_node( node->children, "show" ) ) && c->text_len > 0 ) 56 { 54 57 bud->away_state = (void*) jabber_away_state_by_code( c->text ); 58 if( strcmp( c->text, "chat" ) != 0 ) 59 is_away = OPT_AWAY; 60 } 55 61 else 56 62 { … … 66 72 bud->priority = 0; 67 73 68 serv_got_update( ic, bud->bare_jid, 1, 0, 0, 0, 69 bud->away_state ? UC_UNAVAILABLE : 0, 0 ); 74 /* FIXME: What to send if there are other resources??? */ 75 imcb_buddy_status( ic, bud->bare_jid, OPT_LOGGED_IN | is_away, 76 bud->away_state->full_name, bud->away_message ); 70 77 } 71 78 else if( strcmp( type, "unavailable" ) == 0 ) … … 87 94 available anymore. */ 88 95 if( jabber_buddy_by_jid( ic, from, 0 ) == NULL ) 89 serv_got_update( ic, from, 0, 0, 0, 0, 0, 0);96 imcb_buddy_status( ic, from, 0, NULL, NULL ); 90 97 91 98 *s = '/'; … … 93 100 else 94 101 { 95 serv_got_update( ic, from, 0, 0, 0, 0, 0, 0);102 imcb_buddy_status( ic, from, 0, NULL, NULL ); 96 103 } 97 104 }
Note: See TracChangeset
for help on using the changeset viewer.