powered by Jive Software

Create a component that validates an action

Hi all,

I’m new to writing plugins for openfire and wanted to know if where to start for the following scenario. I want to allow users the ability to send a custom stanza to the server that then sends a message out to the entire room. For instance, I would like to allow some users to send a custom “MOTD” stanza to the room they are in, and (only if they are authorized – I’ll check a mySQL table), then send the MOTD stanza out to the room.

What’s the best way to go about this? Would writing a packet interceptor be the way? Or a component? Any examples of how to start?

Much appreciated, thanks!