Changeset 0da65d5 for protocols/jabber/message.c
- Timestamp:
- 2007-03-31T05:40:45Z (17 years ago)
- Branches:
- master
- Children:
- aef4828
- Parents:
- fa29d093
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/message.c
rfa29d093 r0da65d5 26 26 xt_status jabber_pkt_message( struct xt_node *node, gpointer data ) 27 27 { 28 struct gaim_connection *gc = data;28 struct im_connection *ic = data; 29 29 char *from = xt_find_attr( node, "from" ); 30 30 char *type = xt_find_attr( node, "type" ); … … 47 47 if( ( s = strchr( from, '/' ) ) ) 48 48 { 49 if( ( bud = jabber_buddy_by_jid( gc, from, GET_BUDDY_EXACT ) ) )49 if( ( bud = jabber_buddy_by_jid( ic, from, GET_BUDDY_EXACT ) ) ) 50 50 bud->last_act = time( NULL ); 51 51 else … … 76 76 77 77 if( fullmsg->len > 0 ) 78 serv_got_im( gc, bud ? bud->bare_jid : from, fullmsg->str, 0, 0, fullmsg->len );78 serv_got_im( ic, bud ? bud->bare_jid : from, fullmsg->str, 0, 0, fullmsg->len ); 79 79 80 80 g_string_free( fullmsg, TRUE ); … … 84 84 { 85 85 bud->flags |= JBFLAG_DOES_XEP85; 86 serv_got_typing( gc, bud ? bud->bare_jid : from, 0, 1 );86 serv_got_typing( ic, bud ? bud->bare_jid : from, 0, 1 ); 87 87 } 88 88 /* No need to send a "stopped typing" signal when there's a message. */ … … 90 90 { 91 91 bud->flags |= JBFLAG_DOES_XEP85; 92 serv_got_typing( gc, bud ? bud->bare_jid : from, 0, 0 );92 serv_got_typing( ic, bud ? bud->bare_jid : from, 0, 0 ); 93 93 } 94 94 else if( xt_find_node( node->children, "paused" ) ) 95 95 { 96 96 bud->flags |= JBFLAG_DOES_XEP85; 97 serv_got_typing( gc, bud ? bud->bare_jid : from, 0, 2 );97 serv_got_typing( ic, bud ? bud->bare_jid : from, 0, 2 ); 98 98 } 99 99
Note: See TracChangeset
for help on using the changeset viewer.