mudgangster

Tiny, scriptable MUD client
Log | Files | Refs | README

commit 48bc69bb8266d46a5704ef74f51510ed890be0e5
parent c2ebebf65776bd74bdacd97d18de328709f34b34
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun,  3 May 2020 23:09:30 +0300

Don't send \n infront of chats

Diffstat:
Msrc/lua/chat.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lua/chat.lua b/src/lua/chat.lua @@ -114,7 +114,7 @@ local function dataHandler( client, loop, watcher ) end function mud.chat_no_space( form, ... ) - local named = "\n" .. chat_name .. form:format( ... ) + local named = chat_name .. form:format( ... ) local data = CommandBytes.all .. named:parseColours() .. "\n\255" for _, client in ipairs( Clients ) do @@ -123,7 +123,7 @@ function mud.chat_no_space( form, ... ) end end - mud.printb( "#lr%s", named ) + mud.printb( "\n#lr%s", named ) handleChat() end