The moderation plugin doesn't process friend updates, and therefore doesn't care whether friend updates are processed before or after chat events.
I don't think I'm being a hardass, and I'm certainly not trying to depreciate the cool factor of it - it is something that is interesting and probably useful to someone somewhere; not in this context, though. There is, IMO, no valid argument for processing BNCS packets out of the order from which they came off the wire. It simply doesn't have the potential to be useful, as guaranteed by the fact that the only packet that requires any substantial amount of power to process is ineligible for a variable priority.
Don't take what I'm saying the wrong way, I am genuinely interested in this kind of thing. Hopefully I'll have some time soon to sit down and actually take a look at how you did it, since I can think of at least one application I'm working on where it would be advantageous to do something similar (that is, prioritizing a potentially large queue of packets).