init.lua

changeset 170
eae589a33624
parent 152
902544037000
child 172
3420808b8d3f
equal deleted inserted replaced
169:72d3ca5225f3 170:eae589a33624
149 b:send(presence); 149 b:send(presence);
150 end); 150 end);
151 151
152 c:hook("ready", function () b:start(); end); 152 c:hook("ready", function () b:start(); end);
153 153
154 c:hook("disconnected", function ()
155 print("Disconnected from server, riddim will exit now");
156 os.exit();
157 end, -1);
158
154 if config.connect_host then 159 if config.connect_host then
155 c.connect_host = config.connect_host; 160 c.connect_host = config.connect_host;
156 end 161 end
157 if config.connect_port then 162 if config.connect_port then
158 c.connect_port = config.connect_port; 163 c.connect_port = config.connect_port;

mercurial