121 c:add_plugin(plugin); |
121 c:add_plugin(plugin); |
122 end |
122 end |
123 |
123 |
124 b:hook("started", function () |
124 b:hook("started", function () |
125 b:send(verse.presence()); |
125 b:send(verse.presence()); |
126 for k, v in pairs(autojoin or {}) do |
126 for k, v in pairs(config.autojoin or {}) do |
127 if type(k) == "number" then |
127 if type(k) == "number" then |
128 b:join_room(v); |
128 b:join_room(v); |
129 elseif type(k) == "string" then |
129 elseif type(k) == "string" then |
130 if type(v) == "string" then |
130 if type(v) == "string" then |
131 b:join_room(k, v); |
131 b:join_room(k, v); |