diff --git a/README.md b/README.md index e2f7208..fc57269 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ The following channel prefixes exist: The following special channels exist: - `#main`: Normal chat without the CSM. + - `@`: A "local echo" channel, messages in this channel are locally displayed. - `@[off]`: Prefixes messages with `[off]`, displayed in chat as `[off]`. ## Added commands diff --git a/init.lua b/init.lua index 80f5a78..034363b 100644 --- a/init.lua +++ b/init.lua @@ -144,7 +144,7 @@ minetest.register_on_sending_chat_messages(function(msg) if cmdprefix ~= '#' or channels[msg:sub(2)] or msg == main_channel then local players = chat_channels.get_channel_users(msg) - if players then + if players and msg ~= '@' then local empty = true for p = 1, #players do if connected_players[players[p]] then