aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-11-26 22:18:44 +0000
committerMatthew Wild <mwild1@gmail.com>2009-11-26 22:18:44 +0000
commit05348c61f37e80e99544ab9f655833a06c88612c (patch)
treee4e9ee549f8c5133ac65e6d3b94ed36920834374
parentdf4d4cd44521d393dbe0a3ee8a62fe0add80f2ba (diff)
downloadprosody-05348c61f37e80e99544ab9f655833a06c88612c.tar.gz
prosody-05348c61f37e80e99544ab9f655833a06c88612c.zip
net.server_handler: Add stub handlers as fallbacks for those listeners don't implement
-rw-r--r--net/server_event.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 74dffb94..f5eafaf6 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -405,7 +405,14 @@ do
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