pidgin: 062468e9: This whole section was partially using s...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Tue May 19 02:00:56 EDT 2009


-----------------------------------------------------------------
Revision: 062468e9e5c7b0a7d4fb51cbd78c9a769cbd120a
Ancestor: 0441282c49ee120808df92f16d30a61e92029474
Author: darkrain42 at pidgin.im
Date: 2009-05-19T05:56:50
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/062468e9e5c7b0a7d4fb51cbd78c9a769cbd120a

Modified files:
        libpurple/protocols/jabber/buddy.c

ChangeLog: 

This whole section was partially using spaces instead of tabs.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c	08dfe111730e3e2fad645425636008fa86ce7976
+++ libpurple/protocols/jabber/buddy.c	a73b3430a601ec8b53d2f206254680f50a978176
@@ -1460,50 +1460,50 @@ static void jabber_last_parse(JabberStre
 				if(seconds) {
 					char *end = NULL;
 					long sec = strtol(seconds, &end, 10);
-                    JabberBuddy *jb = NULL;
-                    char *resource = NULL;
-                    char *buddy_name = NULL;
+					JabberBuddy *jb = NULL;
+					char *resource = NULL;
+					char *buddy_name = NULL;
 					JabberBuddyResource *jbr = NULL;
 
-                    if(end != seconds) {
+					if(end != seconds) {
 						JabberBuddyInfoResource *jbir = g_hash_table_lookup(jbi->resources, resource_name);
 						if(jbir) {
 							jbir->idle_seconds = sec;
 						}
 					}
-                    /* Update the idle time of the buddy resource, if we got it. 
-                     This will correct the value when a server doesn't mark 
-                     delayed presence and we got the presence when signing on */
-                    jb = jabber_buddy_find(js, from, FALSE);
-                    if (jb) {
-                        resource = jabber_get_resource(from);
-                        buddy_name = jabber_get_bare_jid(from);
-                        /* if the resource already has an idle time set, we
-                         must have gotten it originally from a presence. In
-                         this case we update it. Otherwise don't update it, to
-                         avoid setting an idle and not getting informed about
-                         the resource getting unidle */
-                        if (resource && buddy_name) {
-                            jbr = jabber_buddy_find_resource(jb, resource);
-                            if (jbr) {
-                                if (jbr->idle) {
-                                    if (sec) {
-                                        jbr->idle = time(NULL) - sec;
-                                    } else {
-                                        jbr->idle = 0;
-                                    }
+					/* Update the idle time of the buddy resource, if we got it. 
+					 This will correct the value when a server doesn't mark 
+					 delayed presence and we got the presence when signing on */
+					jb = jabber_buddy_find(js, from, FALSE);
+					if (jb) {
+						resource = jabber_get_resource(from);
+						buddy_name = jabber_get_bare_jid(from);
+						/* if the resource already has an idle time set, we
+						 must have gotten it originally from a presence. In
+						 this case we update it. Otherwise don't update it, to
+						 avoid setting an idle and not getting informed about
+						 the resource getting unidle */
+						if (resource && buddy_name) {
+							jbr = jabber_buddy_find_resource(jb, resource);
+							if (jbr) {
+								if (jbr->idle) {
+									if (sec) {
+										jbr->idle = time(NULL) - sec;
+									} else {
+										jbr->idle = 0;
+									}
 
-                                    if (jbr == 
-                                        jabber_buddy_find_resource(jb, NULL)) {
-                                        purple_prpl_got_user_idle(js->gc->account, 
-                                            buddy_name, jbr->idle, jbr->idle);
-                                    }
-                                }
-                            }
-                        }
-                        g_free(resource);
-                        g_free(buddy_name);
-                    }
+									if (jbr == 
+										jabber_buddy_find_resource(jb, NULL)) {
+										purple_prpl_got_user_idle(js->gc->account, 
+											buddy_name, jbr->idle, jbr->idle);
+									}
+								}
+							}
+						}
+						g_free(resource);
+						g_free(buddy_name);
+					}
 				}
 			}
 		}


More information about the Commits mailing list