Hello, I'm new to Prosody and It's hard for me to understand how the "module:hook" works. Perhaps I need to check every message that arrive to the server - just watch inside every message and release them to go when they initially were sent by user. I've created and installed my module:
module:set_global(); function module.add_host(module) module:hook("message/bare", on_message) end function on_message(event) -- some work to do with message module:send(event.stanza) return true end It is successfully intercepts messages but the problem now is that the message never delivered to the recipient user. -- You received this message because you are subscribed to the Google Groups "prosody-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to prosody-dev+unsubscr...@googlegroups.com. To post to this group, send email to prosody-dev@googlegroups.com. Visit this group at http://groups.google.com/group/prosody-dev. For more options, visit https://groups.google.com/d/optout.