summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2017-03-31 21:10:23 -0500
committercheapie <no-email-for-you@example.com>2017-03-31 21:10:23 -0500
commit34e7ad0b1ef7886fd325a9acc5b8c3aa3f5fdbd0 (patch)
tree59cb1aa3f96626f1caf9ee5a9294f1c3d3eae8d0
parent55824129bd0db5ec337363618f5bab66148611ab (diff)
downloadchat6-34e7ad0b1ef7886fd325a9acc5b8c3aa3f5fdbd0.tar
chat6-34e7ad0b1ef7886fd325a9acc5b8c3aa3f5fdbd0.tar.gz
chat6-34e7ad0b1ef7886fd325a9acc5b8c3aa3f5fdbd0.tar.bz2
chat6-34e7ad0b1ef7886fd325a9acc5b8c3aa3f5fdbd0.tar.xz
chat6-34e7ad0b1ef7886fd325a9acc5b8c3aa3f5fdbd0.zip
Update init.lua
-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"