Changeset

4625:325965bafae1

mod_c2s, mod_s2s: Drop default_port and default_mode from listener objects (default_port is deprecated, and default_mode already defaults to *a)
author Matthew Wild <mwild1@gmail.com>
date Thu, 15 Mar 2012 16:31:10 +0000
parents 4624:3e4715d44561
children 4626:9df9e87d0339
files plugins/mod_c2s.lua plugins/s2s/mod_s2s.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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'};
--- 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'};