comparison mod_admin_web/admin_web/mod_admin_web.lua @ 1865:db8b256f51ff

mod_admin_web,mod_carbons,mod_csi_compat,mod_mam_muc,mod_tcpproxy: Explicitly return true
author Kim Alvefur <zash@zash.se>
date Mon, 21 Sep 2015 20:03:08 +0200
parents 95b8b1f9a882
children c3317f61f3f9
comparison
equal deleted inserted replaced
1864:991a5f74f848 1865:db8b256f51ff
269 end 269 end
270 elseif action.name == "items" then 270 elseif action.name == "items" then
271 local node = action.attr.node; 271 local node = action.attr.node;
272 local ok, ret = service[module.host]:get_items(node, stanza.attr.from); 272 local ok, ret = service[module.host]:get_items(node, stanza.attr.from);
273 if not ok then 273 if not ok then
274 return origin.send(st.error_reply(stanza, "cancel", ret)); 274 origin.send(st.error_reply(stanza, "cancel", ret));
275 return true;
275 end 276 end
276 277
277 local data = st.stanza("items", { node = node }); 278 local data = st.stanza("items", { node = node });
278 for _, entry in pairs(ret) do 279 for _, entry in pairs(ret) do
279 data:add_child(entry); 280 data:add_child(entry);
296 :tag("adminsub", { xmlns = xmlns_adminsub }) 297 :tag("adminsub", { xmlns = xmlns_adminsub })
297 :add_child(data); 298 :add_child(data);
298 else 299 else
299 reply = st.error_reply(stanza, "feature-not-implemented"); 300 reply = st.error_reply(stanza, "feature-not-implemented");
300 end 301 end
301 return origin.send(reply); 302 origin.send(reply);
303 return true;
302 end); 304 end);
303 305
304 -- Add/remove c2s sessions 306 -- Add/remove c2s sessions
305 module:hook("resource-bind", function(event) 307 module:hook("resource-bind", function(event)
306 add_client(event.session, module.host); 308 add_client(event.session, module.host);