cpw.nader.asynclogging-3: a35bb181: Disabled the log reader plugin to focus ...

morshed.nader at gmail.com morshed.nader at gmail.com
Thu Jan 13 01:25:50 EST 2011


----------------------------------------------------------------------
Revision: a35bb181b8d7a56fa347d18afbe6bfa256e9b523
Parent:   c36a368a8e660dc4cd734c36f32866c445142034
Author:   morshed.nader at gmail.com
Date:     01/12/11 21:27:07
Branch:   im.pidgin.cpw.nader.asynclogging-3
URL: http://d.pidgin.im/viewmtn/revision/info/a35bb181b8d7a56fa347d18afbe6bfa256e9b523

Changelog: 

Disabled the log reader plugin to focus on other things

Changes against parent c36a368a8e660dc4cd734c36f32866c445142034

  patched  libpurple/plugins/Makefile.mingw
  patched  libpurple/plugins/log_reader.c

-------------- next part --------------
============================================================
--- libpurple/plugins/log_reader.c	d2383ebb40950961e5fc9e5832315ed834849f62
+++ libpurple/plugins/log_reader.c	5c38e3e1da6c2046e8b980ea473c2242d576877c
@@ -1186,6 +1186,7 @@ purple_trillian_log_list(PurpleLog *log,
 static GList *
 purple_trillian_log_list(PurpleLog *log, PurpleLogChatType chat_type, const gchar *sn, PurpleAccount *account, GCancellable *cancellable, GError **error)
 {
+	PurpleCommonLog *common_log = PURPLE_COMMON_LOG(log);
 	GList *list = NULL;
 	PurplePlugin *plugin;
 	PurplePluginProtocolInfo *prpl_info;
@@ -1257,15 +1258,16 @@ purple_trillian_log_list(PurpleLog *log,
 
 			*c = '\0';
 			if (purple_str_has_prefix(line, "Session Close ")) {
+				if (purple_common_log_get_length(common_log) <= 0)
 				if (data && !data->length) {
 					if (!(data->length = last_line_offset - data->offset)) {
 						/* This log had no data, so we remove it. */
 						GList *last = g_list_last(list);
 
 						purple_debug_info("Trillian log list",
-						                  "Empty log. Offset %i\n", data->offset);
+							"Empty log. Offset %i\n", data->offset);
 
-						trillian_logger_finalize((PurpleLog *)last->data);
+						g_object_unref(last->data);
 						list = g_list_delete_link(list, last);
 					}
 				}
============================================================
--- libpurple/plugins/Makefile.mingw	b69cc263e177e5e0c8baec69e31c6672976cfbb4
+++ libpurple/plugins/Makefile.mingw	3f82da8af389ddfab2842bf352efc37b9c81e164
@@ -64,7 +64,7 @@ plugins: \
 		buddynote.dll \
 		idle.dll \
 		joinpart.dll \
-		log_reader.dll \
+#		log_reader.dll \
 		newline.dll \
 		offlinemsg.dll \
 		psychic.dll \


More information about the Commits mailing list