aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2015-04-21 16:13:23 +0200
committerChristophe Romain <christophe.romain@process-one.net>2015-04-21 16:13:23 +0200
commitcf37f3977af7bd119883259fbf451f789455f5e7 (patch)
tree8dba8928d6a46c78e4ec6ac24f5d7fdba0cb2b51
parentremove deferred Collection shim header (diff)
Fix typo, oups...
-rw-r--r--src/mod_pubsub.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index e266e89be..75a64e1a6 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -3413,7 +3413,7 @@ broadcast_stanza(Host, _Node, _Nidx, _Type, NodeOptions, SubsByDepth, NotifyType
Stanza = add_message_type(BaseStanza, NotificationType),
%% Handles explicit subscriptions
SubIDsByJID = subscribed_nodes_by_jid(NotifyType, SubsByDepth),
- lists:foreach(fun ({LJID, NodeName, SubIDs}) ->
+ lists:foreach(fun ({LJID, _NodeName, SubIDs}) ->
LJIDs = case BroadcastAll of
true ->
{U, S, _} = LJID,
@@ -3427,7 +3427,7 @@ broadcast_stanza(Host, _Node, _Nidx, _Type, NodeOptions, SubsByDepth, NotifyType
Stanza;
%% If there's only one SubID, don't add it
{true, [_]} ->
- Stnza;
+ Stanza;
{true, SubIDs} ->
add_shim_headers(Stanza, subid_shim(SubIDs))
end,