From b13f0653addf5c50587b793f9acde1c97fc6062e Mon Sep 17 00:00:00 2001 From: AURUMVORXX Date: Fri, 26 Dec 2025 04:43:52 +0500 Subject: [PATCH] =?UTF-8?q?main.nut:=20=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BF=D0=B8=D1=81=D0=B8=20none=20=D0=B2=20uuid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/server/main.nut | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/server/main.nut b/include/server/main.nut index 8149acc..5b308bd 100644 --- a/include/server/main.nut +++ b/include/server/main.nut @@ -45,7 +45,8 @@ class PyG2O function _send(data, uuid = "none") { - data["uuid"] <- uuid; + if (!("uuid" in data)) + data["uuid"] <- uuid; _connection.send(JSON.dump_ansi(data, 2)); } @@ -85,12 +86,12 @@ class PyG2O local chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()"; local result = ""; local length = 32; - + for (local i = 0; i < length; i++) { local randomIndex = rand() % chars.len(); result += chars.slice(randomIndex, randomIndex + 1); } - + return result; } }