Mercurial > pidgin.yaz
diff src/protocols/oscar/ssi.c @ 4269:ff0642fab1d5
[gaim-migrate @ 4520]
Our cable was out again, so I was left doing dull stuff.
I changed the alias_buddy prpl function so that it takes the alias as well as
just the buddy name. It seemed silly not to pass the alias to a function
that changes the alias.
I added a call back for this prpl function in oscar.c. This has the effect
of, when you add/change/remove the alias of a buddy, it also changes the
alias in the server list.
I changed some normalize calls in oscar.c because I think it's better this
way. I could be wrong.
I added the ability to re-request authorization from contacts that have not
authorized you yet. Just right-click on those mofo's.
I shuffled some functions around. oscar.c is a little messy.
Our cable was out some today. Here's the message they have when you call
their customer support:
"All high speed data customers in the 919 and 252 area code may experience
flashing status lights on their cable modems with inability to access
online services at this time."
919 is basically all of Raleigh. I'm going to estimate at least 10,000
people with Time Warner cable. That's a lot of people. Time Warner
sucks. This is from a few hours today:
"15566 packets transmitted, 598 packets received, +8 duplicates, 96% packet loss"
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Jan 2003 21:21:00 +0000 |
parents | ea8fb193f5a0 |
children | aa20cc16dc08 |
line wrap: on
line diff
--- a/src/protocols/oscar/ssi.c Thu Jan 09 20:44:41 2003 +0000 +++ b/src/protocols/oscar/ssi.c Thu Jan 09 21:21:00 2003 +0000 @@ -889,6 +889,43 @@ } /** + * Change the alias stored on the server for a given buddy. + * + * @param sess The oscar session. + * @param conn The bos connection for this session. + * @param gn The group that the buddy is currently in. + * @param sn The screen name of the buddy. + * @param alias The new alias for the buddy. + * @return Return 0 if no errors, otherwise return the error number. + */ +faim_export int aim_ssi_aliasbuddy(aim_session_t *sess, aim_conn_t *conn, const char *gn, const char *sn, const char *alias) +{ + struct aim_ssi_item *tmp; + aim_tlvlist_t *data = NULL; + + if (!sess || !conn || !gn || !sn) + return -EINVAL; + + if (!(tmp = aim_ssi_itemlist_finditem(sess->ssi.local, gn, sn, AIM_SSI_TYPE_BUDDY))) + return -EINVAL; + + if (alias && !strlen(alias)) + alias = NULL; + + /* Need to add the x0131 TLV to the TLV chain */ + if (alias) + aim_addtlvtochain_raw(&data, 0x0131, strlen(alias), alias); + + aim_freetlvchain(&tmp->data); + tmp->data = data; + + /* Sync our local list with the server list */ + aim_ssi_sync(sess, conn); + + return 0; +} + +/** * Rename a group. * * @param sess The oscar session.