Changeset

5008:28498f29fdd8

Merge with Zash
author Matthew Wild <mwild1@gmail.com>
date Wed, 25 Jul 2012 18:51:49 +0100
parents 5004:047f6621e709 (current diff) 5007:76f957b44cf7 (diff)
children 5009:b27ba2c83dd4
files
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Wed Jul 25 19:04:42 2012 +0300
+++ b/plugins/mod_admin_telnet.lua	Wed Jul 25 18:51:49 2012 +0100
@@ -93,8 +93,7 @@
 				commands["bye"](session, line);
 				break;
 			else
-				local command = line:lower();
-				command = line:match("^%w+") or line:match("%p");
+				local command = line:match("^%w+") or line:match("%p");
 				if commands[command] then
 					commands[command](session, line);
 					break;
@@ -642,7 +641,6 @@
 end
 
 function def_env.s2s:showcert(domain)
-	local ser = require "util.serialization".serialize;
 	local print = self.session.print;
 	local domain_sessions = set.new(array.collect(keys(incoming_s2s)))
 		/function(session) return session.from_host == domain and session or nil; end;
@@ -689,7 +687,6 @@
 	end
 	local domain_certs = array.collect(values(cert_set));
 	-- Phew. We now have a array of unique certificates presented by domain.
-	local print = self.session.print;
 	local n_certs = #domain_certs;
 	
 	if n_certs == 0 then
@@ -904,6 +901,8 @@
 	return setmetatable({ room = room_obj }, console_room_mt);
 end
 
+local um = require"core.usermanager";
+
 def_env.user = {};
 function def_env.user:create(jid, password)
 	local username, host = jid_split(jid);