mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Use YAML syntax for limits option in mod_multicast
This commit is contained in:
parent
70606d7f1a
commit
0534678028
@ -998,9 +998,8 @@ build_service_limit_record(LimitOpts) ->
|
|||||||
build_limit_record(LimitOptsR, remote)}.
|
build_limit_record(LimitOptsR, remote)}.
|
||||||
|
|
||||||
get_from_limitopts(LimitOpts, SenderT) ->
|
get_from_limitopts(LimitOpts, SenderT) ->
|
||||||
[{StanzaT, Number}
|
{SenderT, Result} = lists:keyfind(SenderT, 1, LimitOpts),
|
||||||
|| {SenderT2, StanzaT, Number} <- LimitOpts,
|
Result.
|
||||||
SenderT =:= SenderT2].
|
|
||||||
|
|
||||||
build_remote_limit_record(LimitOpts, SenderT) ->
|
build_remote_limit_record(LimitOpts, SenderT) ->
|
||||||
build_limit_record(LimitOpts, SenderT).
|
build_limit_record(LimitOpts, SenderT).
|
||||||
|
Loading…
Reference in New Issue
Block a user