# HG changeset patch # User Mark Doliner # Date 1271970269 0 # Node ID 8e765543dc8b8e8ab85a9d2e2d8bf57f87624bf7 # Parent de59c181e6aa716242264cc5dc7f4b6daceb7d62 Don't hardcode "Pidgin" as the name of this endpoint. Instead, grab the name supplied by the UI. If no name was supplied then fall back to the PACKAGE #define. diff -r de59c181e6aa -r 8e765543dc8b libpurple/protocols/msn/msn.c --- a/libpurple/protocols/msn/msn.c Thu Apr 22 20:51:24 2010 +0000 +++ b/libpurple/protocols/msn/msn.c Thu Apr 22 21:04:29 2010 +0000 @@ -1202,7 +1202,10 @@ purple_connection_set_display_name(gc, username); if (purple_account_get_string(account, "endpoint-name", NULL) == NULL) { - purple_account_set_string(account, "endpoint-name", "Pidgin"); + GHashTable *ui_info = purple_core_get_ui_info(); + const gchar *ui_name = ui_info ? g_hash_table_lookup(ui_info, "name") : NULL; + purple_account_set_string(account, "endpoint-name", + ui_name && *ui_name ? ui_name : PACKAGE_NAME); } if (!msn_session_connect(session, host, port, http_method))