aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep_plus.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_pep_plus.lua')
-rw-r--r--plugins/mod_pep_plus.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua
index 083b96b1..fdc8cdbf 100644
--- a/plugins/mod_pep_plus.lua
+++ b/plugins/mod_pep_plus.lua
@@ -268,7 +268,6 @@ local function resend_last_item(jid, node, service)
end
local function update_subscriptions(recipient, service_name, nodes)
- local service = get_pep_service(service_name);
nodes = nodes or empty_set;
local service_recipients = recipients[service_name];
@@ -286,6 +285,7 @@ local function update_subscriptions(recipient, service_name, nodes)
return;
end
+ local service = get_pep_service(service_name);
for node in current - nodes do
service:remove_subscription(node, recipient, recipient);
end