From 174d3c722e14230458c9fa205a680476f8d1f708 Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Tue, 10 May 2011 17:16:56 +0100 Subject: [PATCH] add -- before the supplied arguments to units --- commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands.py b/commands.py index e7a0de3..114f7b0 100644 --- a/commands.py +++ b/commands.py @@ -154,9 +154,9 @@ def unitq(bot, cmd, nick, conn, public): conn.notice(nick, "syntax: units arg1 as arg2") return if args[1]=='?': - sin,sout=os.popen2(["units","--verbose",args[0]],"r") + sin,sout=os.popen4(["units","--verbose","--",args[0]],"r") else: - sin,sout=os.popen2(["units","--verbose",args[0],args[1]],"r") + sin,sout=os.popen4(["units","--verbose","--",args[0],args[1]],"r") sin.close() res=sout.readlines() #popen2 doesn't clean up the child properly. Do this by hand -- 2.30.2