mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +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) ->
|
||||
Res = lists:splitwith(
|
||||
fun({max_items, infinity}) -> true;
|
||||
(_) -> false
|
||||
fun({max_items, infinity}) -> false;
|
||||
(_) -> true
|
||||
end, Options),
|
||||
Options2 = case Res of
|
||||
{Before, [_ | After]} ->
|
||||
|
Loading…
Reference in New Issue
Block a user