summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua3
1 files changed, 1 insertions, 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"