Changeset 6bbb939 for protocols/msn


Ignore:
Timestamp:
2007-04-16T04:01:13Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
cfc8d58
Parents:
84b045d
Message:

Split serv_got_update() into imcb_buddy_(status|times). (Well, the second
one isn't implemented yet, but I'll do that later.) At last I got rid of
the hack called get_status_string(). And now Yahoo seems to mess up away
messages...

Location:
protocols/msn
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r84b045d r6bbb939  
    192192}
    193193
    194 static char *msn_get_status_string( struct im_connection *ic, int number )
    195 {
    196         const struct msn_away_state *st = msn_away_state_by_number( number );
    197        
    198         if( st )
    199                 return( (char*) st->name );
    200         else
    201                 return( "" );
    202 }
    203 
    204194static void msn_set_away( struct im_connection *ic, char *state, char *message )
    205195{
     
    399389        ret->send_im = msn_send_im;
    400390        ret->away_states = msn_away_states;
    401         ret->get_status_string = msn_get_status_string;
    402391        ret->set_away = msn_set_away;
    403392        ret->get_info = msn_get_info;
  • protocols/msn/ns.c

    r84b045d r6bbb939  
    400400                }
    401401               
    402                 serv_got_update( ic, cmd[3], 1, 0, 0, 0, st->number, 0 );
     402                imcb_buddy_status( ic, cmd[3], OPT_LOGGED_IN |
     403                                   ( st->number ? OPT_AWAY : 0 ), st->name, NULL );
    403404        }
    404405        else if( strcmp( cmd[0], "FLN" ) == 0 )
    405406        {
    406407                if( cmd[1] )
    407                         serv_got_update( ic, cmd[1], 0, 0, 0, 0, 0, 0 );
     408                        imcb_buddy_status( ic, cmd[1], 0, NULL, NULL );
    408409        }
    409410        else if( strcmp( cmd[0], "NLN" ) == 0 )
     
    428429                }
    429430               
    430                 serv_got_update( ic, cmd[2], 1, 0, 0, 0, st->number, 0 );
     431                imcb_buddy_status( ic, cmd[2], OPT_LOGGED_IN |
     432                                   ( st->number ? OPT_AWAY : 0 ), st->name, NULL );
    431433        }
    432434        else if( strcmp( cmd[0], "RNG" ) == 0 )
Note: See TracChangeset for help on using the changeset viewer.