Only send joins etc to configured room
This commit is contained in:
parent
6679cbffe2
commit
fab8a5a729
9
init.lua
9
init.lua
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user