[JDEV] Modules for Namespaces?
DJ Adams
dj.adams at pobox.com
Fri Jul 27 11:05:22 CDT 2001
On Tue, Jul 24, 2001 at 03:48:08PM -0400, Adam Theo wrote:
> hello, all. i posted a couple of messages asking about modules and such,
> and have a more refined question now:
>
> in an <iq type="get"> message, is it possible for a module to 'catch'
> certain namespaces (parhaps that start with jabber:profiles), and then
Yes.
Just place the module in an appropriate place in the JSM's <load>er, and
then test for the namespace in the packet (after checking for the packet
type etc) using NSCHECK.
See mod_admin.c's mod_admin_dispatch() for an example.
dj
More information about the JDev
mailing list