--- a/enhancedhist/enhancedhist.c Sun Oct 25 21:04:22 2009 -0700
+++ b/enhancedhist/enhancedhist.c Sun Oct 25 21:14:04 2009 -0700
@@ -89,7 +89,6 @@
GtkIMHtmlOptions options;
GList *logs = NULL, *logs_head = NULL;
- GSList *buddies = NULL;
struct tm *log_tm = NULL, *local_tm = NULL;
@@ -124,18 +123,19 @@
options = GTK_IMHTML_NO_COLOURS;
- /* Find buddies for this conversation. */
- buddies = purple_find_buddies(account, name);
- /* If we found at least one buddy, save the first buddy's alias. */
- alias = purple_buddy_get_contact_alias((PurpleBuddy *)buddies->data);
/* Determine whether this is an IM or a chat. In either case, if the user has that
* particular log type disabled, the logs file doesnt not get specified */
convtype = purple_conversation_get_type(c);
if (convtype == PURPLE_CONV_TYPE_IM && PREF_IM_VAL) {
+ GSList *buddies = NULL; + /* Find buddies for this conversation. */ + buddies = purple_find_buddies(account, name); + /* If we found at least one buddy, save the first buddy's alias. */ + alias = purple_buddy_get_contact_alias((PurpleBuddy *)buddies->data); for(cur = buddies; cur; cur = cur->next) {
PurpleBlistNode *node = cur->data;
@@ -153,6 +153,8 @@
logs = g_list_sort(logs, purple_log_compare);