Changeset b9f8b87 for protocols/jabber/message.c
- Timestamp:
- 2007-07-01T16:29:21Z (17 years ago)
- Branches:
- master
- Children:
- 9c9b37c
- Parents:
- 2758cfe
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/message.c
r2758cfe rb9f8b87 53 53 { 54 54 if( bud ) 55 { 55 56 bud->last_act = time( NULL ); 57 from = bud->ext_jid ? : bud->bare_jid; 58 } 56 59 else 57 60 *s = 0; /* We need to generate a bare JID now. */ … … 81 84 82 85 if( fullmsg->len > 0 ) 83 imcb_buddy_msg( ic, bud ? bud->bare_jid :from, fullmsg->str,86 imcb_buddy_msg( ic, from, fullmsg->str, 84 87 0, jabber_get_timestamp( node ) ); 85 88 … … 90 93 { 91 94 bud->flags |= JBFLAG_DOES_XEP85; 92 imcb_buddy_typing( ic, bud ? bud->bare_jid :from, OPT_TYPING );95 imcb_buddy_typing( ic, from, OPT_TYPING ); 93 96 } 94 97 /* No need to send a "stopped typing" signal when there's a message. */ … … 96 99 { 97 100 bud->flags |= JBFLAG_DOES_XEP85; 98 imcb_buddy_typing( ic, bud ? bud->bare_jid :from, 0 );101 imcb_buddy_typing( ic, from, 0 ); 99 102 } 100 103 else if( xt_find_node( node->children, "paused" ) ) 101 104 { 102 105 bud->flags |= JBFLAG_DOES_XEP85; 103 imcb_buddy_typing( ic, bud ? bud->bare_jid :from, OPT_THINKING );106 imcb_buddy_typing( ic, from, OPT_THINKING ); 104 107 } 105 108
Note: See TracChangeset
for help on using the changeset viewer.