Re: [prosody-dev] Manipulating Messages Sent to Server

2014-01-23 Thread Victor
Thanks,

I was actually reading that example, and it explained the possibility of 
reading those messages, but using just message/bare didn't work. Now it 
does!

On Wednesday, January 22, 2014 7:23:32 PM UTC+1, Matthew Wild wrote:
>
> Hi Victor, 
>
> On 22 January 2014 14:49, Victor > wrote: 
> > Hello all, 
> > 
> > I am looking for the option to route messages send to server, like this: 
> > 
> >  > from='northumberl...@shakespeare.lit' 
> > to='royalty.england.lit'> 
> >   My lord, dispatch; read o'er these articles. 
> >  
>
> If you are writing a module this is very easy. You simply have to 
> catch the event "message/host". You can see an example module at: 
> http://prosody.im/doc/developers/modules (just change "message/bare" 
> to "message/host"). 
>
> You can read more about events at https://prosody.im/doc/developers/events 
>
> Hope this helps! 
>
> Regards, 
> Matthew 
>

-- 
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/groups/opt_out.


Re: [prosody-dev] Manipulating Messages Sent to Server

2014-01-22 Thread Matthew Wild
Hi Victor,

On 22 January 2014 14:49, Victor  wrote:
> Hello all,
>
> I am looking for the option to route messages send to server, like this:
>
>  from='northumberl...@shakespeare.lit'
> to='royalty.england.lit'>
>   My lord, dispatch; read o'er these articles.
> 

If you are writing a module this is very easy. You simply have to
catch the event "message/host". You can see an example module at:
http://prosody.im/doc/developers/modules (just change "message/bare"
to "message/host").

You can read more about events at https://prosody.im/doc/developers/events

Hope this helps!

Regards,
Matthew

-- 
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/groups/opt_out.