Comparison

clix.lua @ 15:54314164a2a3

clix: Allow -p/--password to specify the login password
author Matthew Wild <mwild1@gmail.com>
date Thu, 07 Jan 2010 02:36:52 +0000
parent 14:1e927484c6ec
child 17:fa9efbef8a0c
comparison
equal deleted inserted replaced
14:1e927484c6ec 15:54314164a2a3
81 -- Optional config parameters 81 -- Optional config parameters
82 conn.connect_host = account.address; 82 conn.connect_host = account.address;
83 conn.connect_port = account.port; 83 conn.connect_port = account.port;
84 84
85 -- Connect! 85 -- Connect!
86 conn:connect_client(account.jid, account.password); 86 conn:connect_client(account.jid, opts.password or account.password);
87 87
88 if type(opts.resource) == "string" then 88 if type(opts.resource) == "string" then
89 conn.resource = opts.resource; 89 conn.resource = opts.resource;
90 end 90 end
91 91