chiark
/
gitweb
/
~matthewv
/
irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
71eaf5c
)
add -- before the supplied arguments to units
author
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Tue, 10 May 2011 16:16:56 +0000
(17:16 +0100)
committer
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Tue, 10 May 2011 16:16:56 +0000
(17:16 +0100)
commands.py
patch
|
blob
|
history
diff --git
a/commands.py
b/commands.py
index e7a0de3da12d7c37dd392471e760d16eeb498c6f..114f7b0e65a705832f08c068705c8e65a6ad1368 100644
(file)
--- 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.popen
2(["units","--verbose
",args[0]],"r")
+ sin,sout=os.popen
4(["units","--verbose","--
",args[0]],"r")
else:
- sin,sout=os.popen
2(["units","--verbose
",args[0],args[1]],"r")
+ sin,sout=os.popen
4(["units","--verbose","--
",args[0],args[1]],"r")
sin.close()
res=sout.readlines()
#popen2 doesn't clean up the child properly. Do this by hand