# HG changeset patch # User Hubert Chathi # Date 1269269455 14400 # Node ID d9ed6e7d9936468f5283ed653d552b19830b22cb # Parent 1eaa469140e901083276f791c251e9b2fd905572 allow specifying connect host and port in config file diff -r 1eaa469140e9 -r d9ed6e7d9936 init.lua --- 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);