Comparison

plugins/mod_disco.lua @ 5772:9cef4b5c2fe3

mod_disco: Check for host type == 'local' ('normal' never existed)
author Matthew Wild <mwild1@gmail.com>
date Tue, 06 Aug 2013 17:18:39 +0100
parent 5689:832ea1e9ac9e
child 5776:bd0ff8ae98a8
comparison
equal deleted inserted replaced
5771:c4ed6680bf8d 5772:9cef4b5c2fe3
30 break; 30 break;
31 end 31 end
32 end 32 end
33 end 33 end
34 34
35 if module:get_host_type() == "normal" then 35 if module:get_host_type() == "local" then
36 module:add_identity("server", "im", module:get_option_string("name", "Prosody")); -- FIXME should be in the non-existing mod_router 36 module:add_identity("server", "im", module:get_option_string("name", "Prosody")); -- FIXME should be in the non-existing mod_router
37 end 37 end
38 module:add_feature("http://jabber.org/protocol/disco#info"); 38 module:add_feature("http://jabber.org/protocol/disco#info");
39 module:add_feature("http://jabber.org/protocol/disco#items"); 39 module:add_feature("http://jabber.org/protocol/disco#items");
40 40