diff options
-rw-r--r-- | net/server_event.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index c01c85a6..73cc9dbc 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -426,6 +426,11 @@ do return false, "setoption not implemented"; end + function interface_mt:setlistener(listener) + self.onconnect, self.ondisconnect, self.onincoming, self.ontimeout + = listener.onconnect, listener.ondisconnect, listener.onincoming, listener.ontimeout; + end + -- Stub handlers function interface_mt:onconnect() end |