Matterbridge config added.
This commit is contained in:
parent
5a03ce95bf
commit
95fa171706
4
init.lua
4
init.lua
@ -46,6 +46,8 @@ sc.light_green = minetest.get_color_escape_sequence('#88FF88')
|
||||
sc.light_red = minetest.get_color_escape_sequence('#FF8888')
|
||||
|
||||
sc.irc_on = minetest.settings:get_bool("smart_chat.irc_on") or false
|
||||
sc.matterbridge = minetest.settings:get_bool("smart_chat.matterbridge") or false
|
||||
sc.matterbridge_irc = minetest.settings:get_bool("smart_chat.matterbridge_irc") or false
|
||||
|
||||
sc.S = nil
|
||||
local S
|
||||
@ -58,6 +60,8 @@ else
|
||||
|
||||
end
|
||||
|
||||
if(matterbridge_irc) then sc.irc_on = false end
|
||||
|
||||
if (sc.irc_on) then
|
||||
|
||||
-- Let it be.
|
||||
|
@ -8,21 +8,25 @@
|
||||
|
||||
]]--
|
||||
|
||||
local sc = smart_chat
|
||||
local sc = smart_chat
|
||||
|
||||
if(minetest.global_exist(yl_matterbridge)) then
|
||||
if(sc.matterbridge == true) then
|
||||
|
||||
function yl_matterbridge.publish_to_chat(user_name, message_text)
|
||||
local line = "<".. user_name .. "@bridge> " .. message_text
|
||||
sc.sent_2_public_channel(line)
|
||||
if(minetest.global_exist(yl_matterbridge)) then
|
||||
|
||||
end -- func(user_name
|
||||
function yl_matterbridge.publish_to_chat(user_name, message_text)
|
||||
local line = "<".. user_name .. "@bridge> " .. message_text
|
||||
sc.sent_2_public_channel(line)
|
||||
|
||||
function sc.send_2_bridge(user_name, message_text)
|
||||
local line = "<" .. user_name .. "@" .. sc.servername .. "> " .. message_text
|
||||
yl_matterbridge.send_to_bridge(username, line)
|
||||
end -- func(user_name
|
||||
|
||||
end
|
||||
function sc.send_2_bridge(user_name, message_text)
|
||||
local line = "<" .. user_name .. "@" .. sc.servername .. "> " .. message_text
|
||||
yl_matterbridge.send_to_bridge(username, line)
|
||||
|
||||
end -- if(minetest.global_exist
|
||||
end
|
||||
|
||||
end -- if(minetest.global_exist
|
||||
|
||||
end -- if( sc.matterbridge
|
||||
|
||||
|
@ -41,3 +41,6 @@ smart_chat.irc_automatic_reconnect_max (Max. tries to connect) int 5
|
||||
smart_chat.servername (Name of the World) string Local
|
||||
smart_chat.channel_password (Password for the Channel) string ""
|
||||
smart_chat.user_password (Password for registered Users) string ""
|
||||
|
||||
smart_chat.matterbridge (Enable support for Matterbridge) bool false
|
||||
smart_chat.matterbridge_irc (Enable IRC on Matterbridge) bool false
|
||||
|
Loading…
x
Reference in New Issue
Block a user