pidgin.next.minor: 3e5ff89e: Fix the indentation in this function

markdoliner at pidgin.im markdoliner at pidgin.im
Sun Jan 25 20:15:44 EST 2009


-----------------------------------------------------------------
Revision: 3e5ff89e571b71aeb7665812bd6aff22015a16a4
Ancestor: e5d32f52ad1dc6c9bb101dd07a018cccc2bb0f38
Author: markdoliner at pidgin.im
Date: 2009-01-26T01:13:25
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/3e5ff89e571b71aeb7665812bd6aff22015a16a4

Modified files:
        pidgin/plugins/history.c

ChangeLog: 

Fix the indentation in this function

-------------- next part --------------
============================================================
--- pidgin/plugins/history.c	118a9dfa9783dcc3561e0f8f668a88eed362f7b7
+++ pidgin/plugins/history.c	651d7f4b1f6c8ac7691e335a36e7d7616ddd2916
@@ -62,19 +62,19 @@ static void historize(PurpleConversation
 			return;
 
 		/* Find buddies for this conversation. */
-	        buddies = purple_find_buddies(account, name);
+		buddies = purple_find_buddies(account, name);
 
 		/* If we found at least one buddy, save the first buddy's alias. */
 		if (buddies != NULL)
 			alias = purple_buddy_get_contact_alias((PurpleBuddy *)buddies->data);
 
-	        for (cur = buddies; cur != NULL; cur = cur->next)
-	        {
-	                PurpleBlistNode *node = cur->data;
-					PurpleBlistNode *prev = purple_blist_node_get_sibling_prev(node);
-					PurpleBlistNode *next = purple_blist_node_get_sibling_next(node);
-	                if ((node != NULL) && ((prev != NULL) || (next != NULL)))
-	                {
+		for (cur = buddies; cur != NULL; cur = cur->next)
+		{
+			PurpleBlistNode *node = cur->data;
+			PurpleBlistNode *prev = purple_blist_node_get_sibling_prev(node);
+			PurpleBlistNode *next = purple_blist_node_get_sibling_next(node);
+			if ((node != NULL) && ((prev != NULL) || (next != NULL)))
+			{
 				PurpleBlistNode *node2;
 				PurpleBlistNode *parent = purple_blist_node_get_parent(node);
 				PurpleBlistNode *child = purple_blist_node_get_first_child(parent);
@@ -86,16 +86,15 @@ static void historize(PurpleConversation
 				 * in the contact and get all the logs. */
 				for (node2 = child ; node2 != NULL ; node2 = purple_blist_node_get_sibling_next(node2))
 				{
-					logs = g_list_concat(
-						purple_log_get_logs(PURPLE_LOG_IM,
+					logs = g_list_concat(purple_log_get_logs(PURPLE_LOG_IM,
 							purple_buddy_get_name((PurpleBuddy *)node2),
 							purple_buddy_get_account((PurpleBuddy *)node2)),
-						logs);
+							logs);
 				}
 				break;
-	                }
-	        }
-	        g_slist_free(buddies);
+			}
+		}
+		g_slist_free(buddies);
 
 		if (logs == NULL)
 			logs = purple_log_get_logs(PURPLE_LOG_IM, name, account);
@@ -122,7 +121,7 @@ static void historize(PurpleConversation
 
 	protocol = g_strdup(gtk_imhtml_get_protocol_name(GTK_IMHTML(gtkconv->imhtml)));
 	gtk_imhtml_set_protocol_name(GTK_IMHTML(gtkconv->imhtml),
-							      purple_account_get_protocol_name(((PurpleLog*)logs->data)->account));
+			purple_account_get_protocol_name(((PurpleLog*)logs->data)->account));
 
 	if (gtk_text_buffer_get_char_count(gtk_text_view_get_buffer(GTK_TEXT_VIEW(gtkconv->imhtml))))
 		gtk_imhtml_append_text(GTK_IMHTML(gtkconv->imhtml), "<BR>", options);


More information about the Commits mailing list