From b05f8fcb285d2d13d2be50a3eb1062048fbe30f5 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Tue, 14 Feb 2012 09:37:48 +0000
Subject: Correctly use bare JIDs when banning people from rooms


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));
-- 
cgit v0.10.2-6-g49f6