diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-02-14 09:37:48 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-02-14 09:37:48 (GMT) |
commit | b05f8fcb285d2d13d2be50a3eb1062048fbe30f5 (patch) | |
tree | 497856182b8e72ad839c67c6b0bca6edbc28a292 /Swiften | |
parent | aae3defeecd5a000db33c973f9241d8b9db12c0c (diff) | |
download | swift-b05f8fcb285d2d13d2be50a3eb1062048fbe30f5.zip swift-b05f8fcb285d2d13d2be50a3eb1062048fbe30f5.tar.bz2 |
Correctly use bare JIDs when banning people from rooms
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/MUC/MUC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/MUC/MUC.cpp b/Swiften/MUC/MUC.cpp index 9f6c7fb..9bcb279 100644 --- a/Swiften/MUC/MUC.cpp +++ b/Swiften/MUC/MUC.cpp @@ -297,7 +297,7 @@ void MUC::changeAffiliation(const JID& jid, MUCOccupant::Affiliation affiliation MUCAdminPayload::ref mucPayload = boost::make_shared<MUCAdminPayload>(); MUCItem item; item.affiliation = affiliation; - item.realJID = jid; + item.realJID = jid.toBare(); mucPayload->addItem(item); GenericRequest<MUCAdminPayload>* request = new GenericRequest<MUCAdminPayload>(IQ::Set, getJID(), mucPayload, iqRouter_); request->onResponse.connect(boost::bind(&MUC::handleAffiliationChangeResponse, this, _1, _2, jid, affiliation)); |