diff options
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 |