Only send joins etc to configured room

This commit is contained in:
joenas 2017-06-22 11:42:52 +02:00
parent 6679cbffe2
commit fab8a5a729

View File

@ -132,13 +132,10 @@ function matrix.disconnect(message)
end end
end end
function matrix.say(to, message) function matrix.say(message)
if not message then
message = to
to = matrix.config.channel
end
to = to or matrix.config.channel
for room_id, room in pairs(client.rooms) do for room_id, room in pairs(client.rooms) do
if room.room_id == matrix.config.room_id then
room:send_text(message) room:send_text(message)
end end
end
end end