Skip to content

Commit

Permalink
Client: Don't store sensitive information (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Virinas-code committed Sep 10, 2021
1 parent cc5c214 commit dd8393c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crocrodile/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@


def _lok(*args, **kwargs):
main_log.write(" ".join(str(arg) for arg in args) + "\n")
if kwargs.get("store", True):
main_log.write(" ".join(str(arg) for arg in args) + "\n")
else:
del kwargs["store"]
print(colorama.Style.RESET_ALL + colorama.Fore.GREEN
+ time.asctime(time.localtime()) + ":", *args, **kwargs)

Expand Down Expand Up @@ -257,10 +260,10 @@ def game_full(self, event):
lok("Game", self.game_id, "| Playing as Black")


lok("Token is", token)
lok("Token is", token, store=False)

lok("Connected to", client.account.get().get("title", "USER"),
client.account.get().get("username", "Anonymous"))
client.account.get().get("username", "Anonymous"), store=False)
lok("Waiting for challenges")
continue_loop = True
colors = {}
Expand Down

0 comments on commit dd8393c

Please sign in to comment.