pidgin/purple-plugin-pack

This took WAY too long to see. The logs shouldn't be sorted while we're
org.guifications.plugins
2008-08-03, rekkanoryo
f8496a6121df
Parents 7e183558189c
Children 5d00f9d0d8d9
This took WAY too long to see. The logs shouldn't be sorted while we're
still in the outer loop. Sort at the end once we've collected all the logs
we can.
--- a/enhancedhist/enhancedhist.c Sun Aug 03 08:49:22 2008 -0400
+++ b/enhancedhist/enhancedhist.c Sun Aug 03 09:14:01 2008 -0400
@@ -143,12 +143,13 @@
break;
}
+ }
- if(!logs)
+ if(logs)
+ logs = g_list_sort(logs, purple_log_compare);
+ else
logs = purple_log_get_logs(PURPLE_LOG_IM, name, account);
- else
- logs = g_list_sort(logs, purple_log_compare);
- }
+
} else if (convtype == PURPLE_CONV_TYPE_CHAT && PREF_CHAT_VAL) {
logs = purple_log_get_logs(PURPLE_LOG_CHAT,
purple_conversation_get_name(c), purple_conversation_get_account(c));