mudgangster

Log | Files | Refs

commit c314efd5c206c1bd87b2ed373168de5f0b6d9b3e
parent 7b97755ef9c947c031a8a2c2a9a9c0bed5420b11
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon, 18 Feb 2013 16:14:28 +0000

Strip carriage returns from chats

Diffstat:
chat.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chat.lua b/chat.lua @@ -50,7 +50,7 @@ local function dataCoro( client ) if command == CommandBytes.all or command == CommandBytes.pm or command == CommandBytes.message then local message = args:match( "^\n*(.-)\n*$" ) - handleChat( message ) + handleChat( message:gsub( "\r", "" ) ) end return ""