Changeset

58:d5d9f7dffc1f

clix.roster: Don't run any command by default when --interactive
author Kim Alvefur <zash@zash.se>
date Wed, 20 Apr 2011 01:29:45 +0200
parents 57:830baad98c9a
children 59:46cb6e772e31
files clix/roster.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/clix/roster.lua	Tue Mar 15 18:32:51 2011 +0100
+++ b/clix/roster.lua	Wed Apr 20 01:29:45 2011 +0200
@@ -107,11 +107,11 @@
 				conn:close()
 			end
 
-			local firstcmd = commands[arg[1] or "list"];
-			if firstcmd then
-				firstcmd(table.concat(arg, " ", 2, #arg))
-			end
 			if not opts.interactive then
+				local firstcmd = commands[arg[1] or "list"];
+				if firstcmd then
+					firstcmd(table.concat(arg, " ", 2, #arg))
+				end
 				conn:close();
 			end
 		end);