aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/empathy-accounts-dialog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 77bf37414..4e120e1d4 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -216,12 +216,15 @@ static gchar *
get_default_display_name (EmpathyAccountSettings *settings)
{
const gchar *login_id;
- const gchar *protocol;
+ const gchar *protocol, *p;
gchar *default_display_name;
login_id = empathy_account_settings_get_string (settings, "account");
protocol = empathy_account_settings_get_protocol (settings);
+ if ((p = empathy_protocol_name_to_display_name (protocol)) != NULL)
+ protocol = p;
+
if (login_id != NULL)
{
if (!tp_strdiff (protocol, "irc"))