mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-14 22:00:16 +02:00
* src/ejabberd_c2s.erl: User login in with negative priority must not
receive offline messages (Thanks to Badlop) (EJAB-158). SVN Revision: 683
This commit is contained in:
parent
3512c595db
commit
cc07020d34
|
@ -1,3 +1,8 @@
|
|||
2006-11-28 Mickael Remond <mickael.remond@process-one.net>
|
||||
|
||||
* src/ejabberd_c2s.erl: User login in with negative priority must not
|
||||
receive offline messages (Thanks to Badlop).
|
||||
|
||||
2006-11-24 Mickael Remond <mickael.remond@process-one.net>
|
||||
|
||||
* doc/guide.tex: Fixed regexp ACL configuration examples
|
||||
|
|
|
@ -1337,8 +1337,12 @@ presence_update(From, Packet, StateData) ->
|
|||
ejabberd_hooks:run(user_available_hook,
|
||||
StateData#state.server,
|
||||
[StateData#state.jid]),
|
||||
if NewPriority >= 0 ->
|
||||
resend_offline_messages(StateData),
|
||||
resend_subscription_requests(StateData),
|
||||
resend_subscription_requests(StateData);
|
||||
true ->
|
||||
ok
|
||||
end,
|
||||
presence_broadcast_first(
|
||||
From, StateData#state{pres_last = Packet,
|
||||
pres_invis = false
|
||||
|
|
Loading…
Reference in New Issue
Block a user