Fix typographical error

This commit is contained in:
luk3yx 2018-04-16 13:14:51 +12:00
parent 17edab1d71
commit 8b08fdd748
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ chat_channels.send_message = function(msg, c)
show_main_channel = true
minetest.send_chat_message('[off] ' .. msg)
return true, 'Message sent!'
elseif prefix == '#' and not channels[prefix:sub(2)] then
elseif prefix == '#' and not channels[c:sub(2)] then
if c == channel then channel = '@' end
return false, 'The channel ' .. c .. ' does not exist!'
end