Comparison

plugins/mod_pubsub/mod_pubsub.lua @ 9125:da7a2db01d6a

Merge with jonasw
author Matthew Wild <mwild1@gmail.com>
date Mon, 06 Aug 2018 08:21:55 +0100
parent 9119:5444d4a8ad90
child 9139:24a1e7a9d463
comparison
equal deleted inserted replaced
9124:dcc490f0044d 9125:da7a2db01d6a
148 if bare_jid == module.host or usermanager.is_admin(bare_jid, module.host) then 148 if bare_jid == module.host or usermanager.is_admin(bare_jid, module.host) then
149 return admin_aff; 149 return admin_aff;
150 end 150 end
151 end 151 end
152 152
153 function get_service()
154 return service;
155 end
156
153 function set_service(new_service) 157 function set_service(new_service)
154 service = new_service; 158 service = new_service;
155 module.environment.service = service; 159 module.environment.service = service;
156 add_disco_features_from_service(service); 160 add_disco_features_from_service(service);
157 end 161 end
194 publisher = { 198 publisher = {
195 create = false; 199 create = false;
196 publish = true; 200 publish = true;
197 retract = true; 201 retract = true;
198 get_nodes = true; 202 get_nodes = true;
203 get_configuration = true;
199 204
200 subscribe = true; 205 subscribe = true;
201 unsubscribe = true; 206 unsubscribe = true;
202 get_subscription = true; 207 get_subscription = true;
203 get_subscriptions = true; 208 get_subscriptions = true;
218 publish = true; 223 publish = true;
219 retract = true; 224 retract = true;
220 delete = true; 225 delete = true;
221 get_nodes = true; 226 get_nodes = true;
222 configure = true; 227 configure = true;
228 get_configuration = true;
223 229
224 subscribe = true; 230 subscribe = true;
225 unsubscribe = true; 231 unsubscribe = true;
226 get_subscription = true; 232 get_subscription = true;
227 get_subscriptions = true; 233 get_subscriptions = true;