Software /
code /
verse
Comparison
plugins/pubsub.lua @ 490:6b2f31da9610
Update for new Prosody module namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 20 May 2023 20:48:03 +0200 |
parent | 468:fae5ae0ddb84 |
comparison
equal
deleted
inserted
replaced
489:39ed19f12dca | 490:6b2f31da9610 |
---|---|
195 --[[ | 195 --[[ |
196 if config == true then | 196 if config == true then |
197 self.stream:send_iq(pubsub_iq("get", self.service, nil, "configure", self.node) | 197 self.stream:send_iq(pubsub_iq("get", self.service, nil, "configure", self.node) |
198 , function(reply) | 198 , function(reply) |
199 local form = reply:get_child("pubsub"):get_child("configure"):get_cild("x"); | 199 local form = reply:get_child("pubsub"):get_child("configure"):get_cild("x"); |
200 local config = callback(require"util.dataforms".something(form)) | 200 local config = callback(require"prosody.util.dataforms".something(form)) |
201 self.stream:send_iq(pubsub_iq("set", config, ...)) | 201 self.stream:send_iq(pubsub_iq("set", config, ...)) |
202 end); | 202 end); |
203 end | 203 end |
204 --]] | 204 --]] |
205 -- fetch form and pass it to the callback | 205 -- fetch form and pass it to the callback |