mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Tweak pg2_backport.erl to work with Erlang older than R13A (EJAB-1349)
This commit is contained in:
parent
e0bda563e6
commit
62a4e20ae7
@ -253,9 +253,12 @@ terminate(_Reason, _S) ->
|
|||||||
store(List) ->
|
store(List) ->
|
||||||
_ = [(assure_group(Name)
|
_ = [(assure_group(Name)
|
||||||
andalso
|
andalso
|
||||||
[join_group(Name, P) || P <- Members -- group_members(Name)]) ||
|
store2(Name, Members)) ||
|
||||||
[Name, Members] <- List],
|
[Name, Members] <- List],
|
||||||
ok.
|
ok.
|
||||||
|
store2(Name, Members) ->
|
||||||
|
[join_group(Name, P) || P <- Members -- group_members(Name)],
|
||||||
|
true.
|
||||||
|
|
||||||
assure_group(Name) ->
|
assure_group(Name) ->
|
||||||
Key = {group, Name},
|
Key = {group, Name},
|
||||||
|
Loading…
Reference in New Issue
Block a user