Mercurial > pidgin
diff libpurple/protocols/msn/notification.c @ 30685:dd430f788bdc
Allow setting the name of the current location. The default is still Pidgin
because I have no idea how to determine the "Computer Description" that the
official client uses by default (and I'm not even sure it exists on all
platforms).
| author | Elliott Sales de Andrade <qulogic@pidgin.im> |
|---|---|
| date | Tue, 15 Dec 2009 03:58:03 +0000 |
| parents | b4dc2d27f24e |
| children | c1e44e9a1110 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c Tue Dec 15 03:53:11 2009 +0000 +++ b/libpurple/protocols/msn/notification.c Tue Dec 15 03:58:03 2009 +0000 @@ -1844,6 +1844,7 @@ void msn_notification_send_uux_private_endpointdata(MsnSession *session) { xmlnode *private; + const char *name; xmlnode *epname; xmlnode *idle; xmlnode *client_type; @@ -1853,9 +1854,9 @@ private = xmlnode_new("PrivateEndpointData"); - /* TODO: "Pidgin" is a temp EndPointName.. we must use hostid or some.*/ + name = purple_account_get_string(session->account, "endpoint-name", NULL); epname = xmlnode_new_child(private, "EpName"); - xmlnode_insert_data(epname, "Pidgin", -1); + xmlnode_insert_data(epname, name, -1); idle = xmlnode_new_child(private, "Idle"); xmlnode_insert_data(idle, "false", -1);
