From 34e7ad0b1ef7886fd325a9acc5b8c3aa3f5fdbd0 Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 31 Mar 2017 21:10:23 -0500 Subject: Update init.lua --- init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init.lua b/init.lua index a354e7d..29d54db 100644 --- a/init.lua +++ b/init.lua @@ -47,8 +47,7 @@ minetest.register_on_receiving_chat_messages(function(message) if not user then msgtype = "special" text = message - end - if (user == player_name) or (string.match(user,"^(.*)@") == player_name) then + elseif (user == player_name) or (string.match(user,"^(.*)@") == player_name) then msgtype = "sent_channel" elseif string.find(text,player_name) then msgtype = "highlight_channel" -- cgit v1.2.3