Fix /me not showing to IRC properly
This commit is contained in:
parent
4ba30a98aa
commit
c2e7543ff3
1 changed files with 3 additions and 1 deletions
|
@ -294,8 +294,10 @@ if minetest.global_exists("irc") then
|
||||||
|
|
||||||
me_func = function(...)
|
me_func = function(...)
|
||||||
local message = irc.playerMessage(...)
|
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)
|
irc.say(message)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue