Changes in protocols/msn/msn.c [1053836:9cb9868]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
r1053836 r9cb9868 27 27 #include "msn.h" 28 28 29 static struct prpl *my_protocol = NULL; 30 29 31 static void msn_login( struct aim_user *acct ) 30 32 { … … 84 86 { 85 87 m = l->data; 86 87 serv_got_crap( gc, "Warning: Closing down MSN connection with unsent message to %s, you'll have to resend it.", m->who );88 88 g_free( m->who ); 89 89 g_free( m->text ); … … 91 91 } 92 92 g_slist_free( md->msgq ); 93 94 serv_got_crap( gc, "Warning: Closing down MSN connection with unsent message(s), you'll have to resend them." ); 93 95 } 94 96 … … 170 172 171 173 for( i = 0; msn_away_state_list[i].number > -1; i ++ ) 172 l = g_list_append( l, (void*)msn_away_state_list[i].name );174 l = g_list_append( l, msn_away_state_list[i].name ); 173 175 174 176 return( l ); … … 177 179 static char *msn_get_status_string( struct gaim_connection *gc, int number ) 178 180 { 179 conststruct msn_away_state *st = msn_away_state_by_number( number );181 struct msn_away_state *st = msn_away_state_by_number( number ); 180 182 181 183 if( st ) 182 return( (char*)st->name );184 return( st->name ); 183 185 else 184 186 return( "" ); … … 189 191 char buf[1024]; 190 192 struct msn_data *md = gc->proto_data; 191 conststruct msn_away_state *st;193 struct msn_away_state *st; 192 194 193 195 if( strcmp( state, GAIM_AWAY_CUSTOM ) == 0 ) … … 373 375 } 374 376 375 void msn_init() 376 { 377 struct prpl *ret = g_new0(struct prpl, 1); 378 ret->name = "msn"; 377 void msn_init(struct prpl *ret) 378 { 379 ret->protocol = PROTO_MSN; 379 380 ret->login = msn_login; 380 381 ret->close = msn_close; … … 399 400 ret->cmp_buddynames = g_strcasecmp; 400 401 401 register_protocol(ret);402 } 402 my_protocol = ret; 403 }
Note: See TracChangeset
for help on using the changeset viewer.