[ejabberd] Temporary pubsub subcscriptions

Andy Skelton skeltoac at gmail.com
Thu Jul 16 22:10:53 MSD 2009

> For example consider a client that is not subscribed to any nodes, logs in,
> subscribes to a node and then logs out unsubscribing themselves in the
> process.

In trunk, SASL Anonymous users have their pubsub subscriptions deleted
when their sessions are disconnected:
ejabberd_hooks:add(anonymous_purge_hook, ServerHost, ?MODULE, remove_user, 50),

If you are using any other auth mechanism the subscriptions do not go
away. You would need a custom module to add that behavior.


More information about the ejabberd mailing list