summaryrefslogtreecommitdiff
path: root/commands.lua
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2022-09-06 21:02:38 -0400
committerTest_User <hax@andrewyu.org>2022-09-06 21:02:38 -0400
commitec8b1682e86535333c34966f6aafee349e609641 (patch)
treee37c4ca566962b8fd169cc0d6f7e635237b5dedc /commands.lua
parentc3c84a3c6aa633d0833f74d6ce1c99397a7fa8e2 (diff)
downloadcoupserv-ec8b1682e86535333c34966f6aafee349e609641.tar.gz
coupserv-ec8b1682e86535333c34966f6aafee349e609641.zip
fix deprecated CoupServ.py still being in the repo
Diffstat (limited to 'commands.lua')
-rw-r--r--commands.lua6
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