Software /
code /
prosody
Changeset
2235:91b9587a0210
net.server_handler: Add stub handlers as fallbacks for those listeners don't implement
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 26 Nov 2009 22:18:44 +0000 |
parents | 2234:065faeb590b9 |
children | 2236:cf7192f48c56 |
files | net/server_event.lua |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_event.lua Thu Nov 26 22:15:40 2009 +0000 +++ b/net/server_event.lua Thu Nov 26 22:18:44 2009 +0000 @@ -405,7 +405,14 @@ return true end - function interface_mt.onconnect() + -- Stub handlers + function interface_mt:onconnect() + end + function interface_mt:onincoming() + end + function interface_mt:ondisconnect() + end + function interface_mt:ontimeout() end end