mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 02:29:34 +02:00
Use YAML syntax for limits option in mod_multicast
This commit is contained in:
parent
70606d7f1a
commit
0534678028
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue