Changeset 61ae52c for protocols/yahoo


Ignore:
Timestamp:
2007-04-20T05:19:06Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b0eaa5b
Parents:
d323394c
Message:

Renamed/slightly changed syntax of groupchat callback functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    rd323394c r61ae52c  
    146146       
    147147        while( ic->conversations )
    148                 serv_got_chat_left( ic->conversations );
     148                imcb_chat_removed( ic->conversations );
    149149       
    150150        for( l = yd->buddygroups; l; l = l->next )
     
    318318       
    319319        yahoo_conference_logoff( yd->y2_id, NULL, c->data, c->title );
    320         serv_got_chat_left( c );
     320        imcb_chat_removed( c );
    321321}
    322322
     
    330330        roomname = g_strdup_printf( "%s-Bee-%d", ic->acc->user, byahoo_chat_id );
    331331       
    332         c = serv_got_joined_chat( ic, roomname );
    333         add_chat_buddy( c, ic->acc->user );
     332        c = imcb_chat_new( ic, roomname );
     333        imcb_chat_add_buddy( c, ic->acc->user );
    334334       
    335335        /* FIXME: Free this thing when the chat's destroyed. We can't *always*
     
    790790{
    791791        yahoo_conference_logon( inv->yid, NULL, inv->members, inv->name );
    792         add_chat_buddy( inv->c, inv->ic->acc->user );
     792        imcb_chat_add_buddy( inv->c, inv->ic->acc->user );
    793793        g_free( inv->name );
    794794        g_free( inv );
     
    798798{
    799799        yahoo_conference_decline( inv->yid, NULL, inv->members, inv->name, "User rejected groupchat" );
    800         serv_got_chat_left( inv->c );
     800        imcb_chat_removed( inv->c );
    801801        g_free( inv->name );
    802802        g_free( inv );
     
    814814        memset( inv, 0, sizeof( struct byahoo_conf_invitation ) );
    815815        inv->name = g_strdup( room );
    816         inv->c = serv_got_joined_chat( ic, (char*) room );
     816        inv->c = imcb_chat_new( ic, (char*) room );
    817817        inv->c->data = members;
    818818        inv->yid = id;
     
    822822        for( m = members; m; m = m->next )
    823823                if( g_strcasecmp( m->data, ic->acc->user ) != 0 )
    824                         add_chat_buddy( inv->c, m->data );
     824                        imcb_chat_add_buddy( inv->c, m->data );
    825825       
    826826        g_snprintf( txt, 1024, "Got an invitation to chatroom %s from %s: %s", room, who, msg );
     
    844844       
    845845        if( c )
    846                 add_chat_buddy( c, (char*) who );
     846                imcb_chat_add_buddy( c, (char*) who );
    847847}
    848848
     
    856856       
    857857        if( c )
    858                 remove_chat_buddy( c, (char*) who, "" );
     858                imcb_chat_remove_buddy( c, (char*) who, "" );
    859859}
    860860
     
    868868       
    869869        if( c )
    870                 serv_got_chat_in( c, (char*) who, 0, (char*) m, 0 );
     870                imcb_chat_msg( c, (char*) who, (char*) m, 0, 0 );
    871871        g_free( m );
    872872}
Note: See TracChangeset for help on using the changeset viewer.