25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

add node attribute to pubsub subscribe event (EJAB-1361)

This commit is contained in:
Christophe Romain 2010-12-07 13:51:10 +01:00
parent ddc94a8c96
commit 79648ce853

View File

@ -1927,9 +1927,11 @@ subscribe_node(Host, Node, From, JID, Configuration) ->
SubAttrs = case Subscription of
{subscribed, SubId} ->
[{"subscription", subscription_to_string(subscribed)},
{"subid", SubId}];
{"subid", SubId},
{"node",Node}];
Other ->
[{"subscription", subscription_to_string(Other)}]
[{"subscription", subscription_to_string(Other)},
{"node", Node}]
end,
Fields =
[{"jid", jlib:jid_to_string(Subscriber)} | SubAttrs],