pubsub node types

I've spent a couple of hours looking at the mod_pubsub code, and I think I've finally figured out how ejabberd decides which node to create when receiving a create .

As far as I can see, it is looks for the element in the IQ, and looks for its "type" attribute. However, as far as I can see, "type" is no longer part of the XEP, and has been replaced by "node_type" in the data form. Is there a reason the old method is still used? In a way, this is an internal mechanism (since node types beyond "collection" and "leaf" aren't defined anyway), so using the old mechanism is fine. I'm just wondering if this is really the way I should be working with it if I wanted to create a new node type.

Thanks!

Itay

I've reported the problem in

I've reported the problem in the bug tracker: Read node type from the data form

Syndicate content