Mercurial > pidgin
diff src/protocols/oscar/locate.c @ 13007:46ba853a76b5
[gaim-migrate @ 15360]
A few oscar fixes:
* Show the available message in the buddy info box
* ICQ accounts can view available messages
* AIM accounts can view the DND/extended away/occupied statuses of
ICQ buddies
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 23 Jan 2006 04:09:56 +0000 |
parents | e856f985a0b9 |
children |
line wrap: on
line diff
--- a/src/protocols/oscar/locate.c Mon Jan 23 04:03:26 2006 +0000 +++ b/src/protocols/oscar/locate.c Mon Jan 23 04:09:56 2006 +0000 @@ -255,6 +255,21 @@ cur->info_len = userinfo->info_len; } + if (userinfo->status != NULL) { + free(cur->status); + free(cur->status_encoding); + if (userinfo->status_len > 0) { + cur->status = (char *)malloc(userinfo->status_len); + memcpy(cur->status, userinfo->status, userinfo->status_len); + } else + cur->status = NULL; + if (userinfo->status_encoding != NULL) + cur->status_encoding = strdup(userinfo->status_encoding); + else + cur->status_encoding = NULL; + cur->status_len = userinfo->status_len; + } + if (userinfo->away != NULL) { free(cur->away); free(cur->away_encoding); @@ -757,7 +772,7 @@ aim_bstream_advance(bs, length2); } break; - case 0x0002: { /* An status/available message */ + case 0x0002: { /* A status/available message */ free(outinfo->status); free(outinfo->status_encoding); if (length2 >= 4) {