aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-09-03 02:42:50 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-09-03 02:42:50 +0500
commit8b9ca0ac7689b6bb809cf05e4165556d1c9823d1 (patch)
tree6ced45abcaa5be8e77be728e722ad0f1d0fb032c /net
parent1f1b812dc911aeb351534febd93d3fcdee72133d (diff)
downloadprosody-8b9ca0ac7689b6bb809cf05e4165556d1c9823d1.tar.gz
prosody-8b9ca0ac7689b6bb809cf05e4165556d1c9823d1.zip
net.server_event: Don't call listener.onincoming with data=nil when listener.onconnect is missing. onincoming's arguments shall always be non-nil.
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 528305d3..daf2de6a 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -460,7 +460,6 @@ do
-- Stub handlers
function interface_mt:onconnect()
- return self:onincoming(nil);
end
function interface_mt:onincoming()
end