Changeset

88:2c2e241e68df

clix.lua: Log "connected as ..." instead of writing it directly to stderr
author Kim Alvefur <zash@zash.se>
date Sat, 30 Jun 2012 00:59:47 +0200
parents 87:a93406de9f0f
children 89:a8b63fbad807
files clix.lua
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/clix.lua	Sat Jun 30 00:58:52 2012 +0200
+++ b/clix.lua	Sat Jun 30 00:59:47 2012 +0200
@@ -68,9 +68,7 @@
 		conn:close();
 	end);
 	conn:hook("ready", function ()
-		if not opts.quiet then
-			io.stderr:write("clix: connected as ", conn.jid, "\n");
-		end
+		conn:info("Connected as %s", conn.jid);
 		if opts.chatroom then
 			conn:send(verse.presence{to=opts.to.."/"..(opts.nick or "clix")});
 		end