Software /
code /
prosody
Diff
net/server_event.lua @ 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 |
parent | 2234:065faeb590b9 |
child | 2236:cf7192f48c56 |
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