mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix reversed logic in node fixup function
This commit is contained in:
parent
52e7c166fc
commit
3bf4cf5c3f
@ -247,8 +247,8 @@ delete_node(Host, Node) ->
|
|||||||
|
|
||||||
fixup_node(#pubsub_node{options = Options} = Node) ->
|
fixup_node(#pubsub_node{options = Options} = Node) ->
|
||||||
Res = lists:splitwith(
|
Res = lists:splitwith(
|
||||||
fun({max_items, infinity}) -> true;
|
fun({max_items, infinity}) -> false;
|
||||||
(_) -> false
|
(_) -> true
|
||||||
end, Options),
|
end, Options),
|
||||||
Options2 = case Res of
|
Options2 = case Res of
|
||||||
{Before, [_ | After]} ->
|
{Before, [_ | After]} ->
|
||||||
|
Loading…
Reference in New Issue
Block a user