Commit b2c7ac78 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Don't send replies to packets generated locally.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@456 b35dd754-fafc-0310-a699-88a17e54d16e
parent 142a1d0c
......@@ -59,7 +59,11 @@ public class IQAdminHandler {
// element so answer a BAD_REQUEST error
reply.setError(XMPPError.Code.BAD_REQUEST);
}
router.route(reply);
if (reply.getRecipient() != null) {
// Send a reply only if the sender of the original packet was from a real JID. (i.e. not
// a packet generated locally)
router.route(reply);
}
}
/**
......
......@@ -91,7 +91,11 @@ public class IQOwnerHandler {
}
}
}
router.route(reply);
if (reply.getRecipient() != null) {
// Send a reply only if the sender of the original packet was from a real JID. (i.e. not
// a packet generated locally)
router.route(reply);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment