Fix /me not showing to IRC properly

This commit is contained in:
LoneWolfHT 2021-05-02 22:23:41 -07:00
parent 4ba30a98aa
commit c2e7543ff3

View file

@ -294,8 +294,10 @@ if minetest.global_exists("irc") then
me_func = function(...)
local message = irc.playerMessage(...)
local start_escape = message:sub(1, message:find("<")-1)
message = "*" .. message:sub(message:find(" "))
-- format is: \startescape < \endescape playername \startescape > \endescape
message = message:gsub("\15(.-)"..start_escape, "* %1"):gsub("[<>]", "")
irc.say(message)
end