39 if hosts[host] and rostermanager_is_contact_subscribed(node, host, jid_bare(from)) then |
39 if hosts[host] and rostermanager_is_contact_subscribed(node, host, jid_bare(from)) then |
40 reply:tag("identity", {category="account", type="registered"}):up(); |
40 reply:tag("identity", {category="account", type="registered"}):up(); |
41 return true; |
41 return true; |
42 end |
42 end |
43 end); |
43 end); |
|
44 helper:addDiscoItemsHandler("*host", function(reply, to, from, node) |
|
45 if hosts[to] and hosts[to].type == "local" then |
|
46 return true; |
|
47 end |
|
48 end); |
44 end |
49 end |
45 |
50 |
46 module "discomanager" |
51 module "discomanager" |
47 |
52 |
48 function handle(stanza) |
53 function handle(stanza) |