Ignore:
Timestamp:
2006-09-23T16:18:24Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
172a73f1
Parents:
d8e0484
Message:

Implemented a list of away states, using this for a better set_away(), and
got rid of the double <presence> tag sent because of presence_announce().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    rd8e0484 r5e202b0  
    183183static GList *msn_away_states( struct gaim_connection *gc )
    184184{
    185         GList *l = NULL;
     185        static GList *l = NULL;
    186186        int i;
    187187       
    188         for( i = 0; msn_away_state_list[i].number > -1; i ++ )
    189                 l = g_list_append( l, (void*) msn_away_state_list[i].name );
    190        
    191         return( l );
     188        if( l == NULL )
     189                for( i = 0; msn_away_state_list[i].number > -1; i ++ )
     190                        l = g_list_append( l, (void*) msn_away_state_list[i].name );
     191       
     192        return l;
    192193}
    193194
Note: See TracChangeset for help on using the changeset viewer.