net/connlisteners.lua

changeset 150
d09b8a1ab046
parent 145
fbb3a4ff9cf1
child 380
2b22b8eee939
equal deleted inserted replaced
149:40e443eacbbd 150:d09b8a1ab046
26 function get(name) 26 function get(name)
27 local h = listeners[name]; 27 local h = listeners[name];
28 if not h then 28 if not h then
29 pcall(dofile, "net/"..name:gsub("[^%w%-]", "_").."_listener.lua"); 29 pcall(dofile, "net/"..name:gsub("[^%w%-]", "_").."_listener.lua");
30 h = listeners[name]; 30 h = listeners[name];
31
32 end 31 end
33 return h; 32 return h;
34 end 33 end
35 34
36 function start(name, udata) 35 function start(name, udata)

mercurial