Changeset

5120:bcabea740c00

mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item().
author Waqas Hussain <waqas20@gmail.com>
date Wed, 12 Sep 2012 22:22:31 +0500
parents 5119:d868ce990838
children 5121:b5a5643f8572
files plugins/mod_admin_telnet.lua plugins/mod_c2s.lua plugins/mod_component.lua plugins/mod_http.lua plugins/mod_net_multiplex.lua plugins/mod_s2s/mod_s2s.lua
diffstat 6 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Wed Sep 12 22:03:57 2012 +0500
+++ b/plugins/mod_admin_telnet.lua	Wed Sep 12 22:22:31 2012 +0500
@@ -986,7 +986,7 @@
 	end
 end
 
-module:add_item("net-provider", {
+module:provides("net", {
 	name = "console";
 	listener = console_listener;
 	default_port = 5582;
--- a/plugins/mod_c2s.lua	Wed Sep 12 22:03:57 2012 +0500
+++ b/plugins/mod_c2s.lua	Wed Sep 12 22:22:31 2012 +0500
@@ -249,7 +249,7 @@
 	sessions[conn] = session;
 end
 
-module:add_item("net-provider", {
+module:provides("net", {
 	name = "c2s";
 	listener = listener;
 	default_port = 5222;
@@ -259,7 +259,7 @@
 	};
 });
 
-module:add_item("net-provider", {
+module:provides("net", {
 	name = "legacy_ssl";
 	listener = listener;
 	encryption = "ssl";
--- a/plugins/mod_component.lua	Wed Sep 12 22:03:57 2012 +0500
+++ b/plugins/mod_component.lua	Wed Sep 12 22:22:31 2012 +0500
@@ -307,7 +307,7 @@
 	end
 end
 
-module:add_item("net-provider", {
+module:provides("net", {
 	name = "component";
 	listener = listener;
 	default_port = 5347;
--- a/plugins/mod_http.lua	Wed Sep 12 22:03:57 2012 +0500
+++ b/plugins/mod_http.lua	Wed Sep 12 22:22:31 2012 +0500
@@ -123,7 +123,7 @@
 	end
 end
 
-module:add_item("net-provider", {
+module:provides("net", {
 	name = "http";
 	listener = server.listener;
 	default_port = 5280;
@@ -132,7 +132,7 @@
 	};
 });
 
-module:add_item("net-provider", {
+module:provides("net", {
 	name = "https";
 	listener = server.listener;
 	default_port = 5281;
--- a/plugins/mod_net_multiplex.lua	Wed Sep 12 22:03:57 2012 +0500
+++ b/plugins/mod_net_multiplex.lua	Wed Sep 12 22:22:31 2012 +0500
@@ -57,7 +57,7 @@
 	buffers[conn] = nil; -- warn if no buffer?
 end
 
-module:add_item("net-provider", {
+module:provides("net", {
 	name = "multiplex";
 	config_prefix = "";
 	listener = listener;
--- a/plugins/mod_s2s/mod_s2s.lua	Wed Sep 12 22:03:57 2012 +0500
+++ b/plugins/mod_s2s/mod_s2s.lua	Wed Sep 12 22:22:31 2012 +0500
@@ -498,7 +498,7 @@
 
 s2sout.set_listener(listener);
 
-module:add_item("net-provider", {
+module:provides("net", {
 	name = "s2s";
 	listener = listener;
 	default_port = 5269;