mirror of
https://github.com/minetest-mods/irc.git
synced 2024-12-27 09:10:21 +01:00
Remove minetest colour codes before sending messages to IRC.
This commit is contained in:
parent
e80bbe3a62
commit
070eb51236
@ -31,7 +31,7 @@ minetest.register_on_chat_message(function(name, message)
|
|||||||
if nl then
|
if nl then
|
||||||
message = message:sub(1, nl - 1)
|
message = message:sub(1, nl - 1)
|
||||||
end
|
end
|
||||||
irc.say(irc.playerMessage(name, message))
|
irc.say(irc.playerMessage(name, core.strip_colors(message)))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user