summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-09-20 20:38:30 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-09-20 20:38:30 (GMT)
commit703a1c28c3c87ac0fb365ff0683d7c64fcdd2210 (patch)
treed8a6628f64403df172dafc6a85a8b03fab3e455e /Swiften/Queries/Request.cpp
parent5c1ec7985808aba408bec724f5b90fed0dbcb7ce (diff)
downloadswift-contrib-703a1c28c3c87ac0fb365ff0683d7c64fcdd2210.zip
swift-contrib-703a1c28c3c87ac0fb365ff0683d7c64fcdd2210.tar.bz2
Added ClientBlockListManager.
Diffstat (limited to 'Swiften/Queries/Request.cpp')
-rw-r--r--Swiften/Queries/Request.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Swiften/Queries/Request.cpp b/Swiften/Queries/Request.cpp
index 0126d62..382e44c 100644
--- a/Swiften/Queries/Request.cpp
+++ b/Swiften/Queries/Request.cpp
@@ -67,16 +67,13 @@ bool Request::handleIQ(boost::shared_ptr<IQ> iq) {
}
bool Request::isCorrectSender(const JID& jid) {
- if (isAccountJID(receiver_)) {
- return isAccountJID(jid);
+ if (router_->isAccountJID(receiver_)) {
+ return router_->isAccountJID(jid);
}
else {
return jid.equals(receiver_, JID::WithResource);
}
}
-bool Request::isAccountJID(const JID& jid) {
- return jid.isValid() ? router_->getJID().toBare().equals(jid, JID::WithResource) : true;
-}
}