Comparison

plugins/mod_component.lua @ 979:d0fd49c4339c

mod_component: Update for new net_activate_ports
author Matthew Wild <mwild1@gmail.com>
date Fri, 10 Apr 2009 10:49:58 +0100
parent 959:e3db909065f2
child 981:71fce47dff7b
comparison
equal deleted inserted replaced
978:a9898f54b402 979:d0fd49c4339c
209 connlisteners.register('component', component_listener); 209 connlisteners.register('component', component_listener);
210 210
211 module:add_event_hook("server-started", 211 module:add_event_hook("server-started",
212 function () 212 function ()
213 if net_activate_ports then 213 if net_activate_ports then
214 net_activate_ports("component_ports", "component", {5437}, "tcp"); 214 net_activate_ports("component", "component", {5437}, "tcp");
215 else 215 else
216 error("No net_activate_ports: Using an incompatible version of Prosody?"); 216 error("No net_activate_ports: Using an incompatible version of Prosody?");
217 end 217 end
218 end); 218 end);