25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

fix feature build on node disco#info

This commit is contained in:
Christophe Romain 2013-06-25 14:49:22 +02:00
parent 9840b8395e
commit ae1af885ce
2 changed files with 4 additions and 4 deletions

View File

@ -1671,7 +1671,7 @@ node_disco_info(Host, Node, From, Identity, Features) ->
% Other -> Other % Other -> Other
% end. % end.
Action = fun (#pubsub_node{type = Type, id = NodeId}) -> Action = fun (#pubsub_node{type = Type, id = NodeId}) ->
I = Types = case tree_call(Host, get_subnodes, Types = case tree_call(Host, get_subnodes,
[Host, Node, From]) [Host, Node, From])
of of
[] -> [<<"leaf">>]; [] -> [<<"leaf">>];
@ -1687,7 +1687,7 @@ node_disco_info(Host, Node, From, Identity, Features) ->
_ -> [] _ -> []
end end
end, end,
lists:map(fun (T) -> I = lists:map(fun (T) ->
#xmlel{name = <<"identity">>, #xmlel{name = <<"identity">>,
attrs = attrs =
[{<<"category">>, [{<<"category">>,

View File

@ -1326,7 +1326,7 @@ node_disco_info(Host, Node, From, Identity, Features) ->
% Other -> Other % Other -> Other
% end. % end.
Action = fun (#pubsub_node{type = Type, id = NodeId}) -> Action = fun (#pubsub_node{type = Type, id = NodeId}) ->
I = Types = case tree_call(Host, get_subnodes, Types = case tree_call(Host, get_subnodes,
[Host, Node, From]) [Host, Node, From])
of of
[] -> [<<"leaf">>]; [] -> [<<"leaf">>];
@ -1342,7 +1342,7 @@ node_disco_info(Host, Node, From, Identity, Features) ->
_ -> [] _ -> []
end end
end, end,
lists:map(fun (T) -> I = lists:map(fun (T) ->
#xmlel{name = <<"identity">>, #xmlel{name = <<"identity">>,
attrs = attrs =
[{<<"category">>, [{<<"category">>,