Ignore:
Timestamp:
2010-03-06T18:19:31Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
34fbbf9
Parents:
0714d51
Message:

Yahoo! fixes. Turns out the protocol really is somewhat odd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    r0714d51 rbe915f5  
    200200        struct byahoo_data *yd = (struct byahoo_data *) ic->proto_data;
    201201       
    202         if( state )
    203         {
     202        if( state && msg == NULL )
     203        {
     204                /* Use these states only if msg doesn't contain additional
     205                   info since away messages are only supported with CUSTOM. */
    204206                if( g_strcasecmp( state, "Be Right Back" ) == 0 )
    205207                        yd->current_status = YAHOO_STATUS_BRB;
     
    225227                        yd->current_status = YAHOO_STATUS_CUSTOM;
    226228        }
     229        else if( state )
     230                yd->current_status = YAHOO_STATUS_CUSTOM;
    227231        else
    228232                yd->current_status = YAHOO_STATUS_AVAILABLE;
Note: See TracChangeset for help on using the changeset viewer.