Update
This commit is contained in:
parent
d62c379b27
commit
4da09b3fb7
|
@ -6,7 +6,7 @@ class Bot:
|
||||||
def __init__(self, cmd, initcmd = [], user=None):
|
def __init__(self, cmd, initcmd = [], user=None):
|
||||||
|
|
||||||
if user: os.environ["USER"] = user
|
if user: os.environ["USER"] = user
|
||||||
del os.environ["IRCSERVER"]
|
if os.environ["IRCSERVER"]: del os.environ["IRCSERVER"]
|
||||||
|
|
||||||
self.proc = subprocess.Popen(cmd,
|
self.proc = subprocess.Popen(cmd,
|
||||||
stdin = subprocess.PIPE,
|
stdin = subprocess.PIPE,
|
||||||
|
|
Loading…
Reference in New Issue