Ignore:
Timestamp:
2007-12-02T17:25:57Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
fc5d06d
Parents:
911cc4f
Message:

Handling of presence-error packets (only useful for groupchats now), moved
jabber_chat_by_jid() (with the right name) to conference.c, I don't know
what it was doing in jabber_util.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber_util.c

    r911cc4f r5bd21df  
    614614}
    615615
    616 struct groupchat *jabber_chat_by_name( struct im_connection *ic, const char *name )
    617 {
    618         char *normalized = jabber_normalize( name );
    619         struct groupchat *ret;
    620         struct jabber_chat *jc;
    621        
    622         for( ret = ic->groupchats; ret; ret = ret->next )
    623         {
    624                 jc = ret->data;
    625                 if( strcmp( normalized, jc->name ) == 0 )
    626                         break;
    627         }
    628         g_free( normalized );
    629        
    630         return ret;
    631 }
    632 
    633616time_t jabber_get_timestamp( struct xt_node *xt )
    634617{
     
    682665struct jabber_error *jabber_error_parse( struct xt_node *node, char *xmlns )
    683666{
    684         struct jabber_error *err = g_new0( struct jabber_error, 1 );
     667        struct jabber_error *err;
    685668        struct xt_node *c;
    686669        char *s;
    687670       
     671        if( node == NULL )
     672                return NULL;
     673       
     674        err = g_new0( struct jabber_error, 1 );
    688675        err->type = xt_find_attr( node, "type" );
    689676       
Note: See TracChangeset for help on using the changeset viewer.