# HG changeset patch # User Christian Hammond # Date 1061241391 0 # Node ID e0c80bec996a29974e503b8f80c38b16db5e96be # Parent 8ce66049ce68be3baedf97118d62bf616cb662dd [gaim-migrate @ 7011] gru. committer: Tailor Script diff -r 8ce66049ce68 -r e0c80bec996a src/conversation.c --- a/src/conversation.c Mon Aug 18 21:01:03 2003 +0000 +++ b/src/conversation.c Mon Aug 18 21:16:31 2003 +0000 @@ -1431,7 +1431,7 @@ time_t mtime) { GaimPluginProtocolInfo *prpl_info = NULL; - GaimConnection *gc; + GaimConnection *gc = NULL; GaimAccount *account; GaimConversationUiOps *ops; GaimWindow *win; @@ -1448,18 +1448,20 @@ return; account = gaim_conversation_get_account(conv); - gc = gaim_account_get_connection(account); + + if (account != NULL) + gc = gaim_account_get_connection(account); if (gaim_conversation_get_type(conv) == GAIM_CONV_CHAT && - (account->gc == NULL || !g_slist_find(account->gc->buddy_chats, conv))) + (gc == NULL || !g_slist_find(gc->buddy_chats, conv))) return; if (gaim_conversation_get_type(conv) == GAIM_CONV_IM && !g_list_find(gaim_get_conversations(), conv)) return; - if (account->gc != NULL) { - prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(account->gc->prpl); + if (gc != NULL) { + prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); if (gaim_conversation_get_type(conv) == GAIM_CONV_IM || !(prpl_info->options & OPT_PROTO_UNIQUE_CHATNAME)) {