comparison libpurple/protocols/msn/notification.c @ 31123: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
comparison
equal deleted inserted replaced
31122:b4dc2d27f24e 31123:dd430f788bdc
1842 } 1842 }
1843 1843
1844 void msn_notification_send_uux_private_endpointdata(MsnSession *session) 1844 void msn_notification_send_uux_private_endpointdata(MsnSession *session)
1845 { 1845 {
1846 xmlnode *private; 1846 xmlnode *private;
1847 const char *name;
1847 xmlnode *epname; 1848 xmlnode *epname;
1848 xmlnode *idle; 1849 xmlnode *idle;
1849 xmlnode *client_type; 1850 xmlnode *client_type;
1850 xmlnode *state; 1851 xmlnode *state;
1851 char *payload; 1852 char *payload;
1852 int length; 1853 int length;
1853 1854
1854 private = xmlnode_new("PrivateEndpointData"); 1855 private = xmlnode_new("PrivateEndpointData");
1855 1856
1856 /* TODO: "Pidgin" is a temp EndPointName.. we must use hostid or some.*/ 1857 name = purple_account_get_string(session->account, "endpoint-name", NULL);
1857 epname = xmlnode_new_child(private, "EpName"); 1858 epname = xmlnode_new_child(private, "EpName");
1858 xmlnode_insert_data(epname, "Pidgin", -1); 1859 xmlnode_insert_data(epname, name, -1);
1859 1860
1860 idle = xmlnode_new_child(private, "Idle"); 1861 idle = xmlnode_new_child(private, "Idle");
1861 xmlnode_insert_data(idle, "false", -1); 1862 xmlnode_insert_data(idle, "false", -1);
1862 1863
1863 /* TODO: support different client types */ 1864 /* TODO: support different client types */