diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-03-17 16:39:16 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-03-17 16:39:16 +0100 | 
| commit | 8ba511db7b32975df97247474782f82d6a3906f9 (patch) | |
| tree | 3c5695d26d5b9787e711573584802a54098e1a39 | |
| parent | 84c1a0ac4530a04113a349dbc3dd15f0e0a4e683 (diff) | |
Fixed a very stupid bug in the "Closing switchboard with unsent messages"
warning message. There's still another problem with switchboar management
somewhere.. :-(
| -rw-r--r-- | protocols/msn/sb.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/protocols/msn/sb.c b/protocols/msn/sb.c index deaceba1..234be1d6 100644 --- a/protocols/msn/sb.c +++ b/protocols/msn/sb.c @@ -201,9 +201,6 @@ void msn_sb_destroy( struct msn_switchboard *sb )  	debug( "Destroying switchboard: %s", sb->who ? sb->who : sb->key ? sb->key : "" ); -	if( sb->key ) g_free( sb->key ); -	if( sb->who ) g_free( sb->who ); -	  	if( sb->msgq )  	{  		struct msn_message *m; @@ -221,9 +218,12 @@ void msn_sb_destroy( struct msn_switchboard *sb )  		serv_got_crap( gc, "Warning: Closing down MSN switchboard connection with "  		                   "unsent message to %s, you'll have to resend it.", -		                   m->who ? m->who : "(unknown)" ); +		                   sb->who ? sb->who : "(unknown)" );  	} +	if( sb->key ) g_free( sb->key ); +	if( sb->who ) g_free( sb->who ); +	  	if( sb->chat )  	{  		serv_got_chat_left( gc, sb->chat->id ); | 
