2007-05-03 Alexey Shchepin <alexey@sevcom.net>
+ * src/ejabberd_sm.erl: Added set_presence_hook
+
* src/ejabberd_sm.erl: Added check for existence of incoming
subscription destination
end.
set_presence(SID, User, Server, Resource, Priority) ->
- set_session(SID, User, Server, Resource, Priority).
+ set_session(SID, User, Server, Resource, Priority),
+ ejabberd_hooks:run(set_presence_hook, jlib:nameprep(Server),
+ [User, Server, Resource, Priority]).
unset_presence(SID, User, Server, Resource, Status) ->
set_session(SID, User, Server, Resource, undefined),