Changeset

969:9ab6934fb1ff

mod_debug: Run on a different port, and use a different listener to mod_console
author Matthew Wild <mwild1@gmail.com>
date Wed, 08 Apr 2009 21:14:48 +0100
parents 968:13e3bdfb02f9
children 971:dd736391bd41
files plugins/mod_debug.lua
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_debug.lua	Wed Apr 08 20:19:55 2009 +0100
+++ b/plugins/mod_debug.lua	Wed Apr 08 21:14:48 2009 +0100
@@ -10,7 +10,7 @@
 
 local connlisteners_register = require "net.connlisteners".register;
 
-local console_listener = { default_port = 5582; default_mode = "*l"; };
+local console_listener = { default_port = 5583; default_mode = "*l"; };
 
 local sha256, missingglobal = require "util.hashes".sha256;
 
@@ -102,7 +102,8 @@
 	
 end
 
-connlisteners_register('console', console_listener);
+connlisteners_register('debug', console_listener);
+require "net.connlisteners".start("debug");
 
 -- Console commands --
 -- These are simple commands, not valid standalone in Lua