init.lua

changeset 11
7bb53dcf93d4
parent 8
9663866ca475
child 14
3df63aaba9e3
equal deleted inserted replaced
10:77753bce939a 11:7bb53dcf93d4
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

mercurial