Mercurial > prosody-hg
comparison net/connlisteners.lua @ 145:fbb3a4ff9cf1 s2s
dialback keys now verified
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 24 Oct 2008 03:06:55 +0100 |
| parents | 93f3c6b94c75 |
| children | 2b22b8eee939 |
comparison
equal
deleted
inserted
replaced
| 144:ed78c1a0401e | 145:fbb3a4ff9cf1 |
|---|---|
| 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) |
