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,8 +59,12 @@ public class IQAdminHandler {
// element so answer a BAD_REQUEST error
reply.setError(XMPPError.Code.BAD_REQUEST);
}
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);
}
}
/**
* Handles packets that includes item elements. Depending on the item's attributes the
......
......@@ -91,8 +91,12 @@ public class IQOwnerHandler {
}
}
}
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);
}
}
/**
* Handles packets that includes item elements. Depending on the item's attributes the
......
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