127 b:hook("started", function () |
127 b:hook("started", function () |
128 local presence = verse.presence() |
128 local presence = verse.presence() |
129 if b.caps then |
129 if b.caps then |
130 presence:add_child(b:caps()) |
130 presence:add_child(b:caps()) |
131 end |
131 end |
|
132 b:send(presence); |
132 for k, v in pairs(config.autojoin or {}) do |
133 for k, v in pairs(config.autojoin or {}) do |
133 if type(k) == "number" then |
134 if type(k) == "number" then |
134 b:join_room(v); |
135 b:join_room(v); |
135 elseif type(k) == "string" then |
136 elseif type(k) == "string" then |
136 if type(v) == "string" then |
137 if type(v) == "string" then |