Make my previous changes < C++11 compatible.
This was SVN commit r14687.
This commit is contained in:
parent
5e70bd3628
commit
2a1240008c
@ -727,7 +727,8 @@ void XmppClient::handleMUCParticipantPresence(glooxwrapper::MUCRoom*, const gloo
|
|||||||
// we have a nick change
|
// we have a nick change
|
||||||
std::string newNick = participant.newNick.to_string();
|
std::string newNick = participant.newNick.to_string();
|
||||||
m_PlayerMap[newNick].resize(2);
|
m_PlayerMap[newNick].resize(2);
|
||||||
m_PlayerMap[newNick] = {presenceString, ""};
|
m_PlayerMap[newNick][0] = presenceString;
|
||||||
|
m_PlayerMap[newNick][1] = "";
|
||||||
CreateSimpleMessage("muc", nick, "nick", participant.newNick.to_string());
|
CreateSimpleMessage("muc", nick, "nick", participant.newNick.to_string());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -745,7 +746,8 @@ void XmppClient::handleMUCParticipantPresence(glooxwrapper::MUCRoom*, const gloo
|
|||||||
|
|
||||||
DbgXMPP(nick << " is in the room, presence : " << (int)presenceType);
|
DbgXMPP(nick << " is in the room, presence : " << (int)presenceType);
|
||||||
m_PlayerMap[nick].resize(2);
|
m_PlayerMap[nick].resize(2);
|
||||||
m_PlayerMap[nick] = {presenceString, ""};
|
m_PlayerMap[newNick][0] = presenceString;
|
||||||
|
m_PlayerMap[newNick][1] = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user