clix.lua

changeset 7
6078e8d2b59d
parent 5
7209e1f8e66b
child 8
df4cb4a73549
--- a/clix.lua	Wed Jan 06 18:25:42 2010 +0000
+++ b/clix.lua	Thu Jan 07 02:05:16 2010 +0000
@@ -57,7 +57,7 @@
 		io.stderr:write("The specified account (", opts.account or "default", ") wasn't found in the config file\n");
 		return nil;
 	end
-	verse.set_logger(function () end);
+	verse.set_logger(opts.verbose and print or function () end);
 	local conn = verse.new(verse.logger());
 	conn.log.debug = opts.verbose;
 	conn:hook("authentication-failure", function (err)

mercurial