aboutsummaryrefslogtreecommitdiffstats
path: root/util/pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-26 20:33:10 +0200
committerKim Alvefur <zash@zash.se>2018-06-26 20:33:10 +0200
commit2629409a3b3e6bcbc7c219c74ec9e9d098720d06 (patch)
tree279fd262763fe403ffb763227383b1443d26f7ef /util/pubsub.lua
parent64240e72da2ae4eea5791fbd38f291721571f8cf (diff)
downloadprosody-2629409a3b3e6bcbc7c219c74ec9e9d098720d06.tar.gz
prosody-2629409a3b3e6bcbc7c219c74ec9e9d098720d06.zip
util.pubsub: Fix typo
Diffstat (limited to 'util/pubsub.lua')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index ac356657..6c5de919 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -116,7 +116,7 @@ function service:set_affiliation(node, actor, jid, affiliation)
if not node_obj then
return false, "item-not-found";
end
- jid = self.config.normal_jid(jid);
+ jid = self.config.normalize_jid(jid);
node_obj.affiliations[jid] = affiliation;
local _, jid_sub = self:get_subscription(node, true, jid);
if not jid_sub and not self:may(node, jid, "be_unsubscribed") then