Comparison

plugins/mod_admin_telnet.lua @ 5007:76f957b44cf7

mod_admin_telnet: Remove useless call to string.lower()
author Kim Alvefur <zash@zash.se>
date Tue, 24 Jul 2012 22:03:51 +0200
parent 5006:af7e563cf453
child 5011:83b4d3727b4f
comparison
equal deleted inserted replaced
5006:af7e563cf453 5007:76f957b44cf7
91 useglobalenv = true; 91 useglobalenv = true;
92 elseif line == "\004" then 92 elseif line == "\004" then
93 commands["bye"](session, line); 93 commands["bye"](session, line);
94 break; 94 break;
95 else 95 else
96 local command = line:lower(); 96 local command = line:match("^%w+") or line:match("%p");
97 command = line:match("^%w+") or line:match("%p");
98 if commands[command] then 97 if commands[command] then
99 commands[command](session, line); 98 commands[command](session, line);
100 break; 99 break;
101 end 100 end
102 end 101 end