aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorevrooije <evrooije@outlook.com>2017-07-16 12:14:13 +0200
committerevrooije <evrooije@outlook.com>2017-07-16 12:14:13 +0200
commitf302244a6d3885a1859f6f453a7323ec3bcc5d34 (patch)
tree010864230e03a2649f890f48bf6e1b3ac07b7a99
parent5b28d887b35021385ec4a22716ef61af182077fc (diff)
downloadbeerchat-f302244a6d3885a1859f6f453a7323ec3bcc5d34.tar.gz
beerchat-f302244a6d3885a1859f6f453a7323ec3bcc5d34.tar.bz2
beerchat-f302244a6d3885a1859f6f453a7323ec3bcc5d34.zip
Fix where @ history causes crash
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 7ae14ee..beb3ee8 100644
--- a/init.lua
+++ b/init.lua
@@ -5,7 +5,7 @@ local channels = {}
-- Mod settings -- Change these to your liking
--
local main_channel_name = "main" -- The main channel is the one you send messages to when no channel is specified
-local main_channel_owner = "Beerholder" -- The owner of the main channel, usually ADMIN
+local main_channel_owner = "ADMIN" -- The owner of the main channel, usually ADMIN
local main_channel_color = "#ffffff" -- The color in hex of the main channel
local default_channel_color = "#ffffff" -- The default color of channels when no color is specified
@@ -506,7 +506,7 @@ local msg_override = {
if atleastonesent then
successplayers = successplayers:sub(1, -2)
if (successplayers ~= name) then
- minetest.chat_send_player(format_message(private_message_sent_string, { to_player = successplayers, message = msg }))
+ minetest.chat_send_player(name, format_message(private_message_sent_string, { to_player = successplayers, message = msg }))
end
end
end