Removed prefix from irc

Because there is no good way to add a prefix before the name without changing the irc.playerMessage function.
This commit is contained in:
Miniontoby 2022-05-26 16:04:57 +02:00 committed by GitHub
parent ece7c857f7
commit e99643709f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,7 @@ function ranks.chat_send(name, message)
if nl then
message = message:sub(1, nl - 1)
end
irc.say(irc.playerMessage(name, minetest.strip_colors("[" .. prefix .. "] " .. message)))
irc.say(irc.playerMessage(name, minetest.strip_colors(message)))
end
minetest.chat_send_all(prefix.." <"..name.."> "..message)
minetest.log("action", "CHAT: ".."<"..name.."> "..message)