pidgin: 0b2802e1: Oh, make sure we still set the itmsurl i...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Jul 6 05:40:28 EDT 2009


-----------------------------------------------------------------
Revision: 0b2802e180d944397afb3a3fd16131e93af300c4
Ancestor: 957a4a1d105ac470333d8b0f2d8d3a546db15c95
Author: markdoliner at pidgin.im
Date: 2009-07-06T09:35:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0b2802e180d944397afb3a3fd16131e93af300c4

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

ChangeLog: 

Oh, make sure we still set the itmsurl if we're available but don't have
an available message.  Refs #9626.

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c	9368c62b41b534c43bba3f4eb5f1e9aef949ff2c
+++ libpurple/protocols/oscar/oscar.c	8340200845138bf2517b98164b53a7114244fc4f
@@ -3931,6 +3931,7 @@ static int purple_bosrights(OscarData *o
 	PurpleConnection *gc;
 	PurpleAccount *account;
 	PurpleStatus *status;
+	gboolean is_available;
 	PurplePresence *presence;
 	const char *username, *message, *itmsurl;
 	char *tmp;
@@ -3971,13 +3972,14 @@ static int purple_bosrights(OscarData *o
 
 	/* Set our available message based on the current status */
 	status = purple_account_get_active_status(account);
-	if (purple_status_is_available(status))
+	is_available = purple_status_is_available(status);
+	if (is_available)
 		message = purple_status_get_attr_string(status, "message");
 	else
 		message = NULL;
 	tmp = purple_markup_strip_html(message);
 	itmsurl = purple_status_get_attr_string(status, "itmsurl");
-	aim_srv_setextrainfo(od, FALSE, 0, tmp != NULL, tmp, itmsurl);
+	aim_srv_setextrainfo(od, FALSE, 0, is_available, tmp, itmsurl);
 	g_free(tmp);
 
 	presence = purple_status_get_presence(status);


More information about the Commits mailing list