Skip to content
Snippets Groups Projects
Commit fab8a5a7 authored by joenas's avatar joenas
Browse files

Only send joins etc to configured room

parent 6679cbff
No related branches found
No related tags found
No related merge requests found
......@@ -132,13 +132,10 @@ function matrix.disconnect(message)
end
end
function matrix.say(to, message)
if not message then
message = to
to = matrix.config.channel
end
to = to or matrix.config.channel
function matrix.say(message)
for room_id, room in pairs(client.rooms) do
if room.room_id == matrix.config.room_id then
room:send_text(message)
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment