diff libpurple/protocols/jabber/presence.c @ 27607:f95bcb5eb047

Support connecting to IDNA XMPP domains. Also fix two small issues: an invalid write in jabber_close when there is no open connection and the fact that jabber_id_new is now much more restrictive and won't validate "foo@bar.com/", which is what the PurpleAccount username looks like (since Pidgin defaults to an empty Resource).
author Paul Aurich <paul@darkrain42.org>
date Sat, 18 Jul 2009 07:23:09 +0000
parents b448b259e3cf
children 735040819c16
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Sat Jul 18 05:26:23 2009 +0000
+++ b/libpurple/protocols/jabber/presence.c	Sat Jul 18 07:23:09 2009 +0000
@@ -67,7 +67,7 @@
 	g_return_if_fail(js->user != NULL);
 
 	account = purple_connection_get_account(js->gc);
-	username = purple_account_get_username(account);
+	username = purple_connection_get_display_name(js->gc);
 	if (status == NULL)
 		status = purple_account_get_active_status(account);