25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

pubsub disco#items bugfix (EJAB-465)

SVN Revision: 1089
This commit is contained in:
Christophe Romain 2007-12-21 00:08:59 +00:00
parent d58662f706
commit e7fda4a23f
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2007-12-21 Christophe Romain <christophe.romain@process-one.net>
* src/mod_pubsub/mod_pubsub.erl: disco#items bugfix (EJAB-465)
2007-12-21 Badlop <badlop@process-one.net>
* src/msgs/uk.msg: Updated (thanks to Ruslan Rakhmanin)

View File

@ -300,15 +300,17 @@ disco_local_identity(Acc, _From, _To, [], _Lang) ->
disco_local_identity(Acc, _From, _To, _Node, _Lang) ->
Acc.
disco_local_features(Acc, _From, To, Node, _Lang) ->
disco_local_features(Acc, _From, To, [], _Lang) ->
Host = To#jid.lserver,
Feats = case Acc of
{result, I} -> I;
_ -> []
end,
_ -> []
end,
{result, Feats ++ lists:map(fun(Feature) ->
?NS_PUBSUB++"#"++Feature
end, features(Host, Node))}.
end, features(Host, []))};
disco_local_features(Acc, _From, _To, _Node, _Lang) ->
Acc.
disco_local_items(Acc, _From, _To, [], _Lang) ->
Acc;