diff libpurple/protocols/jabber/auth.c @ 22655:fa7e07c74a59

The warning string for plaintext auth over an unencrypted connection is found in two places, but one of them is more informative, including the account name, while the other just says 'this server'. Let's use the informative message in both cases.
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 15 Apr 2008 23:51:03 +0000
parents e062a1dfe6ad
children d5b3afea8764 abd261518b83
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth.c	Tue Apr 15 23:46:13 2008 +0000
+++ b/libpurple/protocols/jabber/auth.c	Tue Apr 15 23:51:03 2008 +0000
@@ -717,13 +717,16 @@
 		} else if(xmlnode_get_child(query, "password")) {
 			if(js->gsc == NULL && !purple_account_get_bool(js->gc->account,
 						"auth_plain_in_clear", FALSE)) {
+				char *msg = g_strdup_printf(_("%s requires plaintext authentication over an unencrypted connection.  Allow this and continue authentication?"),
+											js->gc->account->username);
 				purple_request_yes_no(js->gc, _("Plaintext Authentication"),
 						_("Plaintext Authentication"),
-						_("This server requires plaintext authentication over an unencrypted connection.  Allow this and continue authentication?"),
+						msg,
 						1,
 						purple_connection_get_account(js->gc), NULL, NULL,
 						purple_connection_get_account(js->gc), allow_plaintext_auth,
 						disallow_plaintext_auth);
+				g_free(msg);
 				return;
 			}
 			finish_plaintext_authentication(js);