From fb6e9934a0e701639ade8b01b42f7615c581ef3d Mon Sep 17 00:00:00 2001 From: acmgit Date: Sat, 26 Feb 2022 23:01:33 +0100 Subject: [PATCH] Hallejuja ... --- cmd_all.lua | 4 ++++ cmd_talk2public.lua | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd_all.lua b/cmd_all.lua index f1081ae..5f9590b 100644 --- a/cmd_all.lua +++ b/cmd_all.lua @@ -65,11 +65,13 @@ sc.registered_commands[cname] = function(player, parameter) line = " [" .. player .. "@" .. sc.servername .. "] " .. message if(sc.irc_on) then all_send_to_irc(line) + minetest.log("action", line) end -- if(sc.irc_on) if(sc.matterbridge) then all_send_to_bridge(player, line) + minetest.log("action", "[Matterbridge] " .. line) end -- if(sc.matterbridge @@ -81,11 +83,13 @@ sc.registered_commands[cname] = function(player, parameter) line = " [" .. player .. "@" .. sc.servername .. "] " .. message if(sc.irc_on) then all_send_to_irc(line) + minetest.log("action", line) end -- if(sc.irc_on) if(sc.matterbridge) then all_send_to_bridge(player, line) + minetest.log("action", "[Matterbridge] " .. line) end -- if(matterbridge diff --git a/cmd_talk2public.lua b/cmd_talk2public.lua index f6b89e2..b58b778 100644 --- a/cmd_talk2public.lua +++ b/cmd_talk2public.lua @@ -16,7 +16,7 @@ sc.register_help({ ) local all_send_to_irc = function (message) - local line = "PRIVMSG " .. sc.irc_channel .. message .. sc.crlf + local line = "PRIVMSG " .. sc.irc_channel .. " " .. message .. sc.crlf sc.client:send(line) sc.irc_message_count = 1 -- This prevents for IRC-Echos of multiple player @@ -64,14 +64,16 @@ sc.registered_commands[cname] = function(player, parameter) end -- for (_,player sc.chat(player, sc.green .. message) -- send to own channel - line = " [" .. player .. "@" .. sc.servername .. "]" .. message + line = "[" .. player .. "@" .. sc.servername .. "]" .. message if(sc.irc_on) then all_send_to_irc(line) + minetest.log("action", line) end if(sc.matterbridge) then all_send_to_bridge(player, line) + minetest.log("action", "[Matterbridge] " .. line) end -- if(matterbridge)