]> granicus.if.org Git - ejabberd/commitdiff
Don't forget to advertise disco features
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Tue, 10 Jan 2017 08:25:12 +0000 (11:25 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Tue, 10 Jan 2017 08:25:12 +0000 (11:25 +0300)
src/mod_disco.erl

index 54720f7167b50945c93353495e6661e1952f34d5..f1aa3335f64d3025293216b7ed623ce6e742a2ae 100644 (file)
@@ -180,7 +180,8 @@ get_local_features(Acc, _From, _To, <<"">>, _Lang) ->
                {result, Features} -> Features;
                empty -> []
            end,
-    {result, [<<"iq">>, <<"presence">>|Feats]};
+    {result, [<<"iq">>, <<"presence">>,
+             ?NS_DISCO_INFO, ?NS_DISCO_ITEMS |Feats]};
 get_local_features(Acc, _From, _To, _Node, Lang) ->
     case Acc of
       {result, _Features} -> Acc;