Software /
code /
clix
Diff
clix.lua @ 41:89070edde205
clix.lua: Use verse.logger() instead of print as the default logger
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 15 Sep 2010 16:39:38 +0100 |
parent | 40:c74380af7075 |
child | 42:4f4fe532a889 |
line wrap: on
line diff
--- a/clix.lua Tue Aug 24 22:51:49 2010 +0100 +++ b/clix.lua Wed Sep 15 16:39:38 2010 +0100 @@ -58,7 +58,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(opts.verbose and print or function () end); + verse.set_logger(opts.verbose and verse.logger() or function () end); local conn = verse.new(verse.logger()); conn.log.debug = opts.verbose; conn:hook("authentication-failure", function (err)