core/discomanager.lua

changeset 393
885a1864cd97
parent 388
9f520efc89ba
child 419
af362df8e6fd
equal deleted inserted replaced
389:c747d6963d95 393:885a1864cd97
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);

mercurial