diff options
author | Test_User <hax@andrewyu.org> | 2022-09-06 21:02:38 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2022-09-06 21:02:38 -0400 |
commit | ec8b1682e86535333c34966f6aafee349e609641 (patch) | |
tree | e37c4ca566962b8fd169cc0d6f7e635237b5dedc /commands.lua | |
parent | c3c84a3c6aa633d0833f74d6ce1c99397a7fa8e2 (diff) | |
download | lua_coupserv-ec8b1682e86535333c34966f6aafee349e609641.tar.gz lua_coupserv-ec8b1682e86535333c34966f6aafee349e609641.zip |
fix deprecated CoupServ.py still being in the repo
Diffstat (limited to 'commands.lua')
-rw-r--r-- | commands.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/commands.lua b/commands.lua index bf38ff1..b758812 100644 --- a/commands.lua +++ b/commands.lua @@ -316,7 +316,11 @@ commands = { local fd = io.popen(command) local message = fd:read("*a") for line in message:gmatch("[^\n]*") do - con:send(":1HC000000 PRIVMSG "..resp.." :"..line.."\n") + if line == "" then + con:send(":1HC000000 PRIVMSG "..resp.." : \n") + else + con:send(":1HC000000 PRIVMSG "..resp.." :"..line:gsub("\t", (" "):rep(8)).."\n") + end end fd:close() bash_command = nil |