Mon, 22 Mar 2010 10:50:55 -0400
allow specifying connect host and port in config file
init.lua | file | annotate | diff | comparison | revisions |
--- a/init.lua Wed Dec 23 01:00:13 2009 +0000 +++ b/init.lua Mon Mar 22 10:50:55 2010 -0400 @@ -137,6 +137,13 @@ end); c:hook("binding-success", function () b:start(); end) + + if config.connect_host then + c.connect_host = config.connect_host + end + if config.connect_port then + c.connect_port = config.connect_port + end c:connect_client(config.jid, config.password);