25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Bugfix for starting with a clean caps table (thanks to Karim Gemayel)

This commit is contained in:
Badlop 2010-04-07 12:50:47 +02:00
parent 57d5bc693c
commit 7814527e0d

View File

@ -188,9 +188,9 @@ feature_request(Host, From, Caps, [SubNode | Tail] = SubNodes) ->
case mnesia:dirty_read({caps_features, BinaryNode}) of case mnesia:dirty_read({caps_features, BinaryNode}) of
[] -> [] ->
IQ = #iq{type = get, IQ = #iq{type = get,
ns = ?NS_DISCO_INFO, iq_ns = ?NS_JABBER_CLIENT,
payload = [#xmlel{ns = ?NS_DISCO_INFO, name = 'query', payload = #xmlel{ns = ?NS_DISCO_INFO, name = 'query',
attrs = [?XMLATTR('node', Node ++ "#" ++ SubNode)]}]}, attrs = [?XMLATTR('node', Node ++ "#" ++ SubNode)]}},
F = fun(IQReply) -> F = fun(IQReply) ->
feature_response( feature_response(
IQReply, Host, From, Caps, SubNodes) IQReply, Host, From, Caps, SubNodes)