pidgin: 9d24e5c1: Short-circuit earlier if the buddy is of...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Jun 2 05:46:03 EDT 2008


-----------------------------------------------------------------
Revision: 9d24e5c16bc6348cd580d996f72c8dd57d8f76e7
Ancestor: 8c6407ae1c2c31473f78557c5805f8efa18e1ed8
Author: markdoliner at pidgin.im
Date: 2008-06-02T08:51:40
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9d24e5c16bc6348cd580d996f72c8dd57d8f76e7

Modified files:
        libpurple/protocols/oscar/oscar.c

ChangeLog: 

Short-circuit earlier if the buddy is offline

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c	d828cb61f55ad601cb795d0e6440a1fad1e2d594
+++ libpurple/protocols/oscar/oscar.c	a1e4a9abae54bee9308cd3e0ac4954b474fb1513
@@ -5654,17 +5654,23 @@ const char* oscar_list_emblem(PurpleBudd
 	return NULL;
 }
 
-void oscar_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full) {
-	PurpleConnection *gc = b->account->gc;
-	OscarData *od = gc->proto_data;
-	aim_userinfo_t *userinfo = aim_locate_finduserinfo(od, b->name);
+void oscar_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full)
+{
+	PurpleConnection *gc;
+	OscarData *od;
+	aim_userinfo_t *userinfo;
 
-	if (PURPLE_BUDDY_IS_ONLINE(b)) {
-		oscar_user_info_append_status(gc, user_info, b, userinfo);
+	if (PURPLE_BUDDY_IS_ONLINE(b))
+		return;
 
-		if (full)
-			oscar_user_info_append_extra_info(gc, user_info, b, userinfo);
-	}
+	gc = b->account->gc;
+	od = gc->proto_data;
+	userinfo = aim_locate_finduserinfo(od, b->name);
+
+	oscar_user_info_append_status(gc, user_info, b, userinfo);
+
+	if (full)
+		oscar_user_info_append_extra_info(gc, user_info, b, userinfo);
 }
 
 char *oscar_status_text(PurpleBuddy *b)


More information about the Commits mailing list