aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/msn/msn.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-02-18 17:48:04 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2007-02-18 17:48:04 +0000
commit0fd8559c4a6ad84ad0852e07c4ba2e50b2fdf0ad (patch)
tree6a1c98dae9b34dc4709274067d3bc7977d43ad32 /protocols/msn/msn.c
parent8de63c3fdfb532e85f7d93778e63032f7c84b631 (diff)
parentc7d0f415e0bed09decce7a0503dce2274c9d94d9 (diff)
Merging new Jabber module. See the massive changelog for all the cool
improvements. :-)
Diffstat (limited to 'protocols/msn/msn.c')
-rw-r--r--protocols/msn/msn.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c
index f8686835..663bff8c 100644
--- a/protocols/msn/msn.c
+++ b/protocols/msn/msn.c
@@ -181,13 +181,14 @@ static int msn_send_im( struct gaim_connection *gc, char *who, char *message, in
static GList *msn_away_states( struct gaim_connection *gc )
{
- GList *l = NULL;
+ static GList *l = NULL;
int i;
- for( i = 0; msn_away_state_list[i].number > -1; i ++ )
- l = g_list_append( l, (void*) msn_away_state_list[i].name );
+ if( l == NULL )
+ for( i = 0; msn_away_state_list[i].number > -1; i ++ )
+ l = g_list_append( l, (void*) msn_away_state_list[i].name );
- return( l );
+ return l;
}
static char *msn_get_status_string( struct gaim_connection *gc, int number )