comparison src/conversation.c @ 9613:1b13160bf5a4

[gaim-migrate @ 10456] "Okay, now it's better. Still should close #997210. Note the list below is mostly the same as my initial comment and replaces the former information. 1) Prevent a crash if you sign off and try to dequeue messages from the away dialog. This was because we tried to use the destroyed GaimConnection in a couple places to get the prpl's name for the HTML logger and other conversation data. We look up the information via the account instead. 2) Prevent a possible crash if gaim_gtkconv_write_conv is called with who as NULL. 3) Prevent (null) or an empty string from being logged as the sender's name if the sender no longer has an alias because the account is signed off." --Kevin Stange committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 29 Jul 2004 03:11:00 +0000
parents 293de2970493
children c35c6b56a35f
comparison
equal deleted inserted replaced
9612:a11bc3f5c3e3 9613:1b13160bf5a4
1374 1374
1375 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM && 1375 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM &&
1376 !g_list_find(gaim_get_conversations(), conv)) 1376 !g_list_find(gaim_get_conversations(), conv))
1377 return; 1377 return;
1378 1378
1379 if (gc != NULL) { 1379 if (account != NULL) {
1380 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); 1380 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gaim_find_prpl(gaim_account_get_protocol_id(account)));
1381 1381
1382 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM || 1382 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM ||
1383 !(prpl_info->options & OPT_PROTO_UNIQUE_CHATNAME)) { 1383 !(prpl_info->options & OPT_PROTO_UNIQUE_CHATNAME)) {
1384 1384
1385 if (who == NULL) { 1385 if (who == NULL) {