changeset 20085:af72217807e2

Fix #3127.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 16 Sep 2007 15:05:14 +0000
parents de39f3855e8f
children 94874ffc3760
files pidgin/plugins/history.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/plugins/history.c	Sun Sep 16 04:07:38 2007 +0000
+++ b/pidgin/plugins/history.c	Sun Sep 16 15:05:14 2007 +0000
@@ -45,6 +45,9 @@
 
 	convtype = purple_conversation_get_type(c);
 	gtkconv = PIDGIN_CONVERSATION(c);
+	if (gtkconv == NULL)
+		return;
+
 	if (convtype == PURPLE_CONV_TYPE_IM && g_list_length(gtkconv->convs) < 2)
 	{
 		GSList *buddies;
@@ -163,6 +166,7 @@
 	purple_signal_connect(purple_conversations_get_handle(),
 						"conversation-created",
 						plugin, PURPLE_CALLBACK(historize), NULL);
+	/* XXX: Do we want to listen to pidgin's "conversation-displayed" signal? */
 
 	purple_prefs_connect_callback(plugin, "/purple/logging/log_ims",
 								history_prefs_cb, plugin);