From 5c4dcec8e6301d9ddf1fd6fea0f10fffdb13086e Mon Sep 17 00:00:00 2001 From: "Vgr E.Barry" Date: Sun, 14 Jun 2015 16:31:29 -0400 Subject: [PATCH] Remove \x02 from console and file output --- src/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__init__.py b/src/__init__.py index 5513130..df8d40c 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -82,7 +82,7 @@ def logger(file, write=True, display=True): if file is not None: open(file, "a").close() # create the file if it doesn't exist def log(*output, write=write, display=display): - output = " ".join([str(x) for x in output]).replace("\u0002", "").replace("\x02", "") # remove bold + output = " ".join([str(x) for x in output]).replace("\u0002", "").replace("\\x02", "") # remove bold if botconfig.DEBUG_MODE: write = True if botconfig.DEBUG_MODE or botconfig.VERBOSE_MODE: