Ignore:
Timestamp:
2006-09-21T09:37:03Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5bcf70a
Parents:
dd788bb
Message:

Added simple parsing of incoming <presence> tags, a nice </stream:stream>
at the end of sessions, support for sending messages, and restored the old
(and leaking) xt_print(), which I'll only use for debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    rdd788bb r4a0614e  
    9191        struct jabber_data *jd = gc->proto_data;
    9292       
     93        jabber_end_stream( gc );
     94       
    9395        if( jd->r_inpa >= 0 )
    9496                b_event_remove( jd->r_inpa );
     
    109111static int jabber_send_im( struct gaim_connection *gc, char *who, char *message, int len, int away )
    110112{
    111         return 0;
     113        struct xt_node *node;
     114        int st;
     115       
     116        node = xt_new_node( "body", message, NULL );
     117        node = jabber_make_packet( "message", "chat", who, node );
     118        st = jabber_write_packet( gc, node );
     119        xt_free_node( node );
     120       
     121        return st;
    112122}
    113123
Note: See TracChangeset for help on using the changeset viewer.