From 933a650898cbd6df71f58b357b21f29d6c5baed6 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Thu, 8 Mar 2012 08:42:36 +0100 Subject: [PATCH] Fixed username_mask --- src/userregistration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/userregistration.cpp b/src/userregistration.cpp index f7de616e..db7ab22e 100644 --- a/src/userregistration.cpp +++ b/src/userregistration.cpp @@ -453,7 +453,7 @@ bool UserRegistration::handleSetRequest(const Swift::JID& from, const Swift::JID // #endif if (!registered) { res.jid = barejid; - res.uin = username; + res.uin = newUsername; res.password = *payload->getPassword(); res.language = language; res.encoding = encoding; @@ -462,7 +462,7 @@ bool UserRegistration::handleSetRequest(const Swift::JID& from, const Swift::JID } else { res.jid = barejid; - res.uin = username; + res.uin = newUsername; res.password = *payload->getPassword(); res.language = language; res.encoding = encoding;