From 2faca4242e4de2568eb917df83fd1b9c21f33897 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sun, 28 Aug 2011 11:48:59 +0200
Subject: Remove relaxation of not checking JIDs if the IQRouter's JID isn't
 set.


diff --git a/Swiften/Queries/Request.cpp b/Swiften/Queries/Request.cpp
index 7832c65..95fd25e 100644
--- a/Swiften/Queries/Request.cpp
+++ b/Swiften/Queries/Request.cpp
@@ -76,10 +76,6 @@ bool Request::isCorrectSender(const JID& jid) {
 }
 
 bool Request::isAccountJID(const JID& jid) {
-	// If the router's JID is not set, we don't check anything
-	if (!router_->getJID().isValid()) {
-		return true;
-	}
 	return jid.isValid() ? router_->getJID().toBare().equals(jid, JID::WithResource) : true;
 }
 
-- 
cgit v0.10.2-6-g49f6