From 5951bc76ec8fbb188777de66cb965f05446c7f38 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 7 Jul 2013 14:42:07 +0000 Subject: Added StringUtils functions to Lua API; added StripColorCodes(); ChatLog now strips color codes from logged messages. Fixes FS #398 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1661 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/ChatLog/plugin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MCServer/Plugins/ChatLog') diff --git a/MCServer/Plugins/ChatLog/plugin.lua b/MCServer/Plugins/ChatLog/plugin.lua index 9ef321b48..c8358a6d3 100644 --- a/MCServer/Plugins/ChatLog/plugin.lua +++ b/MCServer/Plugins/ChatLog/plugin.lua @@ -26,7 +26,7 @@ end function OnChat(Player, Message) -- Lets get loggin' - LOGINFO("[" .. Player:GetName() .. "]: " .. Message); + LOGINFO("[" .. Player:GetName() .. "]: " .. StripColorCodes(Message)); return false end \ No newline at end of file -- cgit v1.2.3