From 8b08fdd748a0bd7bec432b68ea57bca547c053be Mon Sep 17 00:00:00 2001 From: luk3yx Date: Mon, 16 Apr 2018 13:14:51 +1200 Subject: [PATCH] Fix typographical error --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index a435eb4..80f5a78 100644 --- a/init.lua +++ b/init.lua @@ -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