I’'d like to extend JM by some advanced server-side message logging functionality. To do that, I need access to events like presence changes and messages. I would like to implement this as a plugin. Is there some event listener I can implement and register without replacing the objects that actually manage and route the events?
In the first place I need reading access to presence changes and p2p messages, later also MUC and file transfer support.
All classes I have found so far are modules registered by the server core, processing a certain class of events exclusively.
Is it possible to implement such a “global event logger” as a plugin? Or do I have to hack the core? As my project is just a prototype, that would be an option, but of course I’'d prefer to use the plugin interface.