AHIT: Fix death link timestamps being incorrect (#5404)
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
import time
|
||||||
|
|
||||||
import Utils
|
import Utils
|
||||||
import websockets
|
import websockets
|
||||||
import functools
|
import functools
|
||||||
@@ -208,6 +210,9 @@ async def proxy(websocket, path: str = "/", ctx: AHITContext = None):
|
|||||||
if not ctx.is_proxy_connected():
|
if not ctx.is_proxy_connected():
|
||||||
break
|
break
|
||||||
|
|
||||||
|
if msg["cmd"] == "Bounce" and msg.get("tags") == ["DeathLink"] and "data" in msg:
|
||||||
|
msg["data"]["time"] = time.time()
|
||||||
|
|
||||||
await ctx.send_msgs([msg])
|
await ctx.send_msgs([msg])
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user