From f2c851832013e351a02ed4f7aed2248f8fa48521 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 13 Aug 2022 17:20:05 +0300 Subject: [PATCH] clearing from cache --- lua/relay/sv_msgSend.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/relay/sv_msgSend.lua b/lua/relay/sv_msgSend.lua index 1f409d5..b1f7a18 100644 --- a/lua/relay/sv_msgSend.lua +++ b/lua/relay/sv_msgSend.lua @@ -32,7 +32,7 @@ local function getAvatar(id, co) end local function formMsg(ply, str) - local id = ply:SteamID64() + local id = ply:SteamID() local co = coroutine.create(function() local form = { @@ -80,6 +80,8 @@ local function plyFrstSpawn(ply) end local function plyDisconnect(ply) + if tmpAvatars[ply.networkid] then tmpAvatars[ply.networkid] = nil end + local form = { ["username"] = Discord.hookname, ["embeds"] = {{