aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
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
commit55f710ce2f704bfa79745d7b9b911f497d5fc552 (patch)
tree6ced45abcaa5be8e77be728e722ad0f1d0fb032c /net/server_event.lua
parent25f647c874d941a87b8f0ac0f98ca8779c1bfa65 (diff)
downloadprosody-55f710ce2f704bfa79745d7b9b911f497d5fc552.tar.gz
prosody-55f710ce2f704bfa79745d7b9b911f497d5fc552.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/server_event.lua')
-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