mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
* src/ejabberd_sm.erl: Added set_presence_hook
SVN Revision: 760
This commit is contained in:
parent
2ae5d13ab8
commit
ab0d7b9151
@ -1,5 +1,7 @@
|
|||||||
2007-05-03 Alexey Shchepin <alexey@sevcom.net>
|
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
|
* src/ejabberd_sm.erl: Added check for existence of incoming
|
||||||
subscription destination
|
subscription destination
|
||||||
|
|
||||||
|
@ -111,7 +111,9 @@ get_user_resources(User, Server) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
set_presence(SID, User, Server, Resource, Priority) ->
|
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) ->
|
unset_presence(SID, User, Server, Resource, Status) ->
|
||||||
set_session(SID, User, Server, Resource, undefined),
|
set_session(SID, User, Server, Resource, undefined),
|
||||||
|
Loading…
Reference in New Issue
Block a user