+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
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