Don't forward bare-JID addressed messages to resources with negative priority
If a user is logged in with a single resource with a negative priority, Openfire should not route messages to that resource that are to the bare JID. Instead, the messages should be stored offline. Messages for the full JID (with resource) should be delivered.
Note that if someone sends this user a message, but sends it to a resources that is not logged in at all (another resource as the one that has the negative priority), the server should treat the message as if it was addressed to a bare JID (and not deliver it, but store it offline).
Openfire 3.3.0 delivers the message stanza at the resource that has negative priority.
Note that if the user changes their negative presence to positive, the offline messages should be delivered immediately. You shouldn't have to wait for the user to sign off and sign back in again.