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