diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 7074306e5c8d03c978f02dc53b9624741c43404b..69c6ef681b253da0ccd9f9b35d7b9b2051389c63 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -164,8 +164,8 @@ void UserManager::handlePresence(Swift::Presence::ref presence) { res.password = ""; res.uin = presence->getFrom().getNode(); res.jid = userkey; - if (res.uin.find_last_of("%") != std::string::npos) { - res.uin.replace(res.uin.find_last_of("%"), 1, "@"); + if (res.uin.find_last_of("%") != std::string::npos) { // OK + res.uin.replace(res.uin.find_last_of("%"), 1, "@"); // OK } if (m_storageBackend) { // store user and getUser again to get user ID.