From 1d1a60c00a5d2396201d9de5226b36a9b82d2591 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Tue, 12 Aug 2003 19:31:19 +0000 Subject: [PATCH] Use new XMPP connection method. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2021 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/AccountManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/AccountManager.java b/source/org/jivesoftware/smack/AccountManager.java index 032f57660..57c7aecc5 100644 --- a/source/org/jivesoftware/smack/AccountManager.java +++ b/source/org/jivesoftware/smack/AccountManager.java @@ -55,6 +55,7 @@ package org.jivesoftware.smack; import org.jivesoftware.smack.packet.Registration; import org.jivesoftware.smack.packet.IQ; import org.jivesoftware.smack.filter.*; +import org.jivesoftware.smack.util.StringUtils; import java.util.*; @@ -205,7 +206,7 @@ public class AccountManager { Registration reg = new Registration(); reg.setType(IQ.Type.SET); reg.setTo(connection.getHost()); - reg.setUsername(connection.getUsername()); + reg.setUsername(StringUtils.parseName(connection.getUser())); reg.setPassword(newPassword); PacketFilter filter = new AndFilter(new PacketIDFilter(reg.getPacketID()), new PacketTypeFilter(IQ.class));