Remove \x02 from console and file output

This commit is contained in:
Vgr E.Barry 2015-06-14 16:31:29 -04:00
parent 1d711b9cee
commit 5c4dcec8e6

View File

@ -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: