diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-03 16:27:38 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-03 16:27:38 (GMT) |
commit | d9a1a47e107bba107499db0fc970ac774fac79e9 (patch) | |
tree | 5d000fb457b75035c1768486a1c0592047ac7d74 /Swiften/MUC/MUCOccupant.cpp | |
parent | a719c9898cba1e5a618996ae506256a0c2556cc4 (diff) | |
download | swift-contrib-d9a1a47e107bba107499db0fc970ac774fac79e9.zip swift-contrib-d9a1a47e107bba107499db0fc970ac774fac79e9.tar.bz2 |
Don't get confused when people change roles in a MUC.
Resolves: #529
Release-Notes: Being in a MUC with someone who has their role changed will no longer cause them to appear several times in the occupant list.
Diffstat (limited to 'Swiften/MUC/MUCOccupant.cpp')
-rw-r--r-- | Swiften/MUC/MUCOccupant.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/MUC/MUCOccupant.cpp b/Swiften/MUC/MUCOccupant.cpp index 3e907ab..33a5fcc 100644 --- a/Swiften/MUC/MUCOccupant.cpp +++ b/Swiften/MUC/MUCOccupant.cpp @@ -14,6 +14,10 @@ MUCOccupant::MUCOccupant(const String &nick, Role role, Affiliation affiliation) MUCOccupant::~MUCOccupant() { } +MUCOccupant::MUCOccupant(const MUCOccupant& other) : nick_(other.getNick()), role_(other.getRole()), affiliation_(other.getAffiliation()), realJID_(other.getRealJID()) { + +} + String MUCOccupant::getNick() const { return nick_; } |