replace all % to @

This commit is contained in:
HanzZ 2013-01-28 07:56:36 +01:00
parent 0185f94872
commit 6b10147edb

View file

@ -230,7 +230,7 @@ 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) { // OK
while (res.uin.find_last_of("%") != std::string::npos) { // OK
res.uin.replace(res.uin.find_last_of("%"), 1, "@"); // OK
}
if (m_storageBackend) {