Fix /s local echo

This commit is contained in:
luk3yx 2018-07-31 07:52:55 +12:00
parent c5f5c6713d
commit 0ea0f1920f
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ chat_channels.send_message = function(msg, c)
elseif c:sub(1, 2) == '@/' then
minetest.run_server_chatcommand(c:sub(3), msg)
if c == '@/s' then
minetest.display_chat_message('-' .. c .. '- ' .. msg)
minetest.display_chat_message('-' .. main_channel .. '- <' ..
localplayer .. '> (s) ' .. msg)
end
return true, 'Message sent!'
elseif prefix == '#' and not channels[c:sub(2)] then