Changeset

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
parents 14:1e927484c6ec
children 16:3a1c076d9382
files clix.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/clix.lua	Thu Jan 07 02:36:34 2010 +0000
+++ b/clix.lua	Thu Jan 07 02:36:52 2010 +0000
@@ -83,7 +83,7 @@
 	conn.connect_port = account.port;
 	
 	-- Connect!
-	conn:connect_client(account.jid, account.password);
+	conn:connect_client(account.jid, opts.password or account.password);
 	
 	if type(opts.resource) == "string" then
 		conn.resource = opts.resource;