Fix #3127.

Sun, 16 Sep 2007 15:05:14 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sun, 16 Sep 2007 15:05:14 +0000
changeset 20342
8d080381b313
parent 20339
352f79e0c384
child 20343
1c1e5f90a1d9

Fix #3127.

pidgin/plugins/history.c file | annotate | diff | comparison | revisions
--- 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);

mercurial