Re-enable ping prints
This commit is contained in:
parent
3773599248
commit
4cdbc80613
@ -33,8 +33,11 @@ d_s = Diff(BLUE, YELLOW)
|
|||||||
def handle(tag: str, data: bytes):
|
def handle(tag: str, data: bytes):
|
||||||
msg = data.decode().strip()
|
msg = data.decode().strip()
|
||||||
if msg.startswith("0c") or msg.startswith("0a"):
|
if msg.startswith("0c") or msg.startswith("0a"):
|
||||||
# ping, ignore
|
if tag == "server":
|
||||||
return
|
print(f"{YELLOW}{msg}{RESET}")
|
||||||
|
else:
|
||||||
|
print(f"{RED}{msg}{RESET}")
|
||||||
|
else:
|
||||||
if tag == "server":
|
if tag == "server":
|
||||||
d_s.consume(msg)
|
d_s.consume(msg)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user