Diff

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
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;