diff src/connection.c @ 6231:1fc158d6ebdb

[gaim-migrate @ 6724] New accounts added using the login window are now correctly saved. You can now use gaim -l to sign on accounts on prpls with no passwords or with optional passwords. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 19 Jul 2003 18:15:06 +0000
parents e391813214a6
children 3ac224953483
line wrap: on
line diff
--- a/src/connection.c	Sat Jul 19 14:59:43 2003 +0000
+++ b/src/connection.c	Sat Jul 19 18:15:06 2003 +0000
@@ -127,17 +127,20 @@
 		return;
 
 	if (!(prpl_info->options & OPT_PROTO_NO_PASSWORD) &&
-		!(prpl_info->options & OPT_PROTO_PASSWORD_OPTIONAL) &&
-		gaim_account_get_password(account) == NULL) {
-
+			!(prpl_info->options & OPT_PROTO_PASSWORD_OPTIONAL) &&
+			gaim_account_get_password(account) == NULL) {
 		gchar *primary;
+		gchar *escaped;
+		const gchar *username = gaim_account_get_username(account);
+
 		gaim_debug(GAIM_DEBUG_INFO, "connection", "Requesting password\n");
-		primary = g_strdup_printf(_("Enter password for %s"),
-								 gaim_account_get_username(account));
+		escaped = g_markup_escape_text(username, strlen(username));
+		primary = g_strdup_printf(_("Enter password for %s"), escaped);
 		gaim_request_input(gc, NULL, primary, NULL, NULL, FALSE, TRUE,
 						   _("OK"), G_CALLBACK(request_pass_ok_cb),
 						   _("Cancel"), NULL, account);
 		g_free(primary);
+		g_free(escaped);
 		gaim_connection_destroy(gc);
 
 		return;