7 local rostermanager_is_contact_subscribed = require "core.rostermanager".is_contact_subscribed; |
7 local rostermanager_is_contact_subscribed = require "core.rostermanager".is_contact_subscribed; |
8 |
8 |
9 do |
9 do |
10 helper:addDiscoInfoHandler("*host", function(reply, to, from, node) |
10 helper:addDiscoInfoHandler("*host", function(reply, to, from, node) |
11 if hosts[to] then |
11 if hosts[to] then |
12 reply:tag("identity", {category="server", type="im", name="ejabberd"}):up(); |
12 reply:tag("identity", {category="server", type="im", name="lxmppd"}):up(); |
13 return true; |
13 return true; |
14 end |
14 end |
15 end); |
15 end); |
16 helper:addDiscoInfoHandler("*node", function(reply, to, from, node) |
16 helper:addDiscoInfoHandler("*node", function(reply, to, from, node) |
17 local node, host = jid_split(to); |
17 local node, host = jid_split(to); |