From 4da09b3fb7b8b00621f8a3eac4819c07c3aa8ecc Mon Sep 17 00:00:00 2001 From: Thomas Baruchel Date: Wed, 23 Jun 2021 21:36:44 +0200 Subject: [PATCH] Update --- hack42.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack42.py b/hack42.py index e4f6a0c..b240eae 100644 --- a/hack42.py +++ b/hack42.py @@ -6,7 +6,7 @@ class Bot: def __init__(self, cmd, initcmd = [], user=None): if user: os.environ["USER"] = user - del os.environ["IRCSERVER"] + if os.environ["IRCSERVER"]: del os.environ["IRCSERVER"] self.proc = subprocess.Popen(cmd, stdin = subprocess.PIPE,