Software /
code /
prosody
Comparison
util/pubsub.lua @ 8941:f0beba9c2822
util.pubsub: Fix typo
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 26 Jun 2018 20:33:10 +0200 |
parent | 8936:7b75c7ec926e |
child | 8950:03ba5b4f131a |
comparison
equal
deleted
inserted
replaced
8940:365b16109d95 | 8941:f0beba9c2822 |
---|---|
114 -- | 114 -- |
115 local node_obj = self.nodes[node]; | 115 local node_obj = self.nodes[node]; |
116 if not node_obj then | 116 if not node_obj then |
117 return false, "item-not-found"; | 117 return false, "item-not-found"; |
118 end | 118 end |
119 jid = self.config.normal_jid(jid); | 119 jid = self.config.normalize_jid(jid); |
120 node_obj.affiliations[jid] = affiliation; | 120 node_obj.affiliations[jid] = affiliation; |
121 local _, jid_sub = self:get_subscription(node, true, jid); | 121 local _, jid_sub = self:get_subscription(node, true, jid); |
122 if not jid_sub and not self:may(node, jid, "be_unsubscribed") then | 122 if not jid_sub and not self:may(node, jid, "be_unsubscribed") then |
123 local ok, err = self:add_subscription(node, true, jid); | 123 local ok, err = self:add_subscription(node, true, jid); |
124 if not ok then | 124 if not ok then |