1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 03:27:59 +01:00

Use new XMPP connection method.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2021 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-08-12 19:31:19 +00:00 committed by mtucker
parent a6e5b853e9
commit 1d1a60c00a

View file

@ -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));