From 4866b29bb88dfc504c313e2a2a0562d1b71f7771 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 24 Jul 2012 22:03:51 +0200 Subject: mod_admin_telnet: Remove useless call to string.lower() --- plugins/mod_admin_telnet.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index 17e5babc..b698d200 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -93,8 +93,7 @@ function console_listener.onincoming(conn, data) 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; -- cgit v1.2.3