aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-07-24 22:03:51 +0200
committerKim Alvefur <zash@zash.se>2012-07-24 22:03:51 +0200
commitb27ef47ca4af1b2aad018806ddff4cececd163a1 (patch)
tree1f391398a90ba6f3cf17dcaad78a24286aed4307 /plugins/mod_admin_telnet.lua
parent61ea70dcd6a33bd54e681df7ae89fa1c0916dbdc (diff)
downloadprosody-b27ef47ca4af1b2aad018806ddff4cececd163a1.tar.gz
prosody-b27ef47ca4af1b2aad018806ddff4cececd163a1.zip
mod_admin_telnet: Remove useless call to string.lower()
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r--plugins/mod_admin_telnet.lua3
1 files changed, 1 insertions, 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;