From: <the...@us...> - 2007-04-01 23:59:39
|
Revision: 18228 http://svn.sourceforge.net/gaim/?rev=18228&view=rev Author: thekingant Date: 2007-04-01 16:59:40 -0700 (Sun, 01 Apr 2007) Log Message: ----------- sf patch #1574238, from Ka-Hing Cheung "icq away message was only showing in blist and tooltip, this patch adds it to the info window so it can be copy and pasted." Modified Paths: -------------- trunk/libgaim/protocols/oscar/oscar.c Modified: trunk/libgaim/protocols/oscar/oscar.c =================================================================== --- trunk/libgaim/protocols/oscar/oscar.c 2007-04-01 18:59:15 UTC (rev 18227) +++ trunk/libgaim/protocols/oscar/oscar.c 2007-04-01 23:59:40 UTC (rev 18228) @@ -3661,6 +3661,8 @@ GaimConnection *gc; GaimAccount *account; GaimBuddy *buddy; + GaimPresence *presence; + GaimStatus *status; struct buddyinfo *bi; gchar who[16]; GaimNotifyUserInfo *user_info; @@ -3754,7 +3756,19 @@ g_free(buf); g_free(utf8); } - + + if (buddy != NULL) { + const gchar *message; + + presence = gaim_buddy_get_presence(buddy); + status = gaim_presence_get_active_status(presence); + message = gaim_status_get_attr_string(status, "message"); + + if (message != NULL && *message != '\0') + oscar_user_info_convert_and_add(account, + user_info, _("Status"), message); + } + oscar_user_info_convert_and_add(account, user_info, _("Additional Information"), info->info); gaim_notify_user_info_add_section_break(user_info); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |