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 |