aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-01-30 14:30:59 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2006-01-30 14:30:59 +0100
commit105383688a6605ca40ab4fa987d72809170a2e36 (patch)
treed53ee8333a8303b493919dab778d498a59476b71
parent68c7c145c281fe3ae734b345bf133d70d1ef8652 (diff)
When closing down MSN (sb) connections with unsent messages, the warning
message now mentions the people those messages were meant for.
-rw-r--r--protocols/msn/msn.c4
-rw-r--r--protocols/msn/sb.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c
index b03c898e..3c7064f8 100644
--- a/protocols/msn/msn.c
+++ b/protocols/msn/msn.c
@@ -83,13 +83,13 @@ static void msn_close( struct gaim_connection *gc )
for( l = md->msgq; l; l = l->next )
{
m = l->data;
+
+ serv_got_crap( gc, "Warning: Closing down MSN connection with unsent message to %s, you'll have to resend it.", m->who );
g_free( m->who );
g_free( m->text );
g_free( m );
}
g_slist_free( md->msgq );
-
- serv_got_crap( gc, "Warning: Closing down MSN connection with unsent message(s), you'll have to resend them." );
}
for( l = gc->permit; l; l = l->next )
diff --git a/protocols/msn/sb.c b/protocols/msn/sb.c
index 9e7ef841..deaceba1 100644
--- a/protocols/msn/sb.c
+++ b/protocols/msn/sb.c
@@ -212,13 +212,16 @@ void msn_sb_destroy( struct msn_switchboard *sb )
for( l = sb->msgq; l; l = l->next )
{
m = l->data;
+
g_free( m->who );
g_free( m->text );
g_free( m );
}
g_slist_free( sb->msgq );
- serv_got_crap( gc, "Warning: Closing down MSN switchboard connection with unsent message(s), you'll have to resend them." );
+ 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)" );
}
if( sb->chat )