qulogic/pidgin

Fix #3127.

2007-09-16, Sadrul Habib Chowdhury
8d080381b313
Parents 352f79e0c384
Children 1c1e5f90a1d9
Fix #3127.
--- 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);