25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-09 15:06:54 +02:00

* src/mod_disco.erl: Minor fix

SVN Revision: 429
This commit is contained in:
Alexey Shchepin 2005-10-30 20:47:26 +00:00
parent a8f5d4cd3d
commit 2efda30fdc
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-10-30 Alexey Shchepin <alexey@sevcom.net>
* src/mod_disco.erl: Minor fix
2005-10-29 Alexey Shchepin <alexey@sevcom.net>
* src/mod_roster_odbc.erl: Bugfix

View File

@ -182,12 +182,14 @@ get_local_identity(Acc, _From, _To, _Node, _Lang) ->
get_local_features({error, _Error} = Acc, _From, _To, _Node, _Lang) ->
Acc;
get_local_features(Acc, _From, _To, [], _Lang) ->
get_local_features(Acc, _From, To, [], _Lang) ->
Feats = case Acc of
{result, Features} -> Features;
empty -> []
end,
{result, ets:tab2list(disco_features) ++ Feats};
Host = To#jid.lserver,
{result,
ets:select(disco_features, [{{{'_', Host}}, [], ['$_']}]) ++ Feats};
get_local_features(Acc, _From, _To, _Node, _Lang) ->
case Acc of