From 933a650898cbd6df71f58b357b21f29d6c5baed6 2012-03-08 08:42:36 From: Jan Kaluza Date: 2012-03-08 08:42:36 Subject: [PATCH] Fixed username_mask --- diff --git a/src/userregistration.cpp b/src/userregistration.cpp index f7de616e14cc1d24f977f3ea2af7ad7e5b650f6b..db7ab22e97d8ff95e9d3cd94653799679b2c0ff0 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;