summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-10-03 16:27:38 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-10-03 16:27:38 (GMT)
commitd9a1a47e107bba107499db0fc970ac774fac79e9 (patch)
tree5d000fb457b75035c1768486a1c0592047ac7d74 /Swiften/MUC/MUCOccupant.h
parenta719c9898cba1e5a618996ae506256a0c2556cc4 (diff)
downloadswift-d9a1a47e107bba107499db0fc970ac774fac79e9.zip
swift-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.h')
-rw-r--r--Swiften/MUC/MUCOccupant.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swiften/MUC/MUCOccupant.h b/Swiften/MUC/MUCOccupant.h
index c9551de..96ac5ad 100644
--- a/Swiften/MUC/MUCOccupant.h
+++ b/Swiften/MUC/MUCOccupant.h
@@ -20,6 +20,7 @@ namespace Swift {
enum Affiliation {Owner, Admin, Member, Outcast, NoAffiliation};
MUCOccupant(const String &nick, Role role, Affiliation affiliation);
+ MUCOccupant(const MUCOccupant& other);
~MUCOccupant();
String getNick() const;
@@ -34,6 +35,7 @@ namespace Swift {
Role role_;
Affiliation affiliation_;
boost::optional<JID> realJID_;
+ /* If you add a field, remember to update the const copy constructor */
};
}