pidgin/plugins/history.c

changeset 21076
bb293a21ce84
parent 20234
272ffbb581b0
parent 20975
bdcc492d3fbe
child 21106
b85fbef13eed
--- a/pidgin/plugins/history.c	Tue Oct 23 17:05:12 2007 +0000
+++ b/pidgin/plugins/history.c	Tue Oct 23 17:27:12 2007 +0000
@@ -46,6 +46,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;
@@ -166,6 +169,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