# HG changeset patch # User Matthew Wild # Date 1331829070 0 # Node ID 325965bafae1fa2088c3023604fb4d51a80ac133 # Parent 3e4715d445614361c4a23bf9cd106cd64d8f0bd5 mod_c2s, mod_s2s: Drop default_port and default_mode from listener objects (default_port is deprecated, and default_mode already defaults to *a) diff -r 3e4715d44561 -r 325965bafae1 plugins/mod_c2s.lua --- a/plugins/mod_c2s.lua Thu Mar 15 16:29:30 2012 +0000 +++ b/plugins/mod_c2s.lua Thu Mar 15 16:31:10 2012 +0000 @@ -31,7 +31,7 @@ local sessions = module:shared("sessions"); local stream_callbacks = { default_ns = "jabber:client", handlestanza = core_process_stanza }; -local listener = { default_port = 5222, default_mode = "*a" }; +local listener = {}; --- Stream events handlers local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; diff -r 3e4715d44561 -r 325965bafae1 plugins/s2s/mod_s2s.lua --- a/plugins/s2s/mod_s2s.lua Thu Mar 15 16:29:30 2012 +0000 +++ b/plugins/s2s/mod_s2s.lua Thu Mar 15 16:31:10 2012 +0000 @@ -317,7 +317,7 @@ end end -local listener = { default_port = 5269, default_mode = "*a" }; +local listener = {}; --- Session methods local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'};