From ed59f325ef44d988ddfa711d2aba1263687f42b2 Mon Sep 17 00:00:00 2001 From: Michael Ficocelli Date: Tue, 9 Apr 2024 21:24:57 -0400 Subject: [PATCH] IPVGO: Ensure full name of method is recorded in the possibleLogs list, to be matched later (#1207) --- src/NetscriptFunctions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NetscriptFunctions.ts b/src/NetscriptFunctions.ts index 4a93e0633..a9e63df53 100644 --- a/src/NetscriptFunctions.ts +++ b/src/NetscriptFunctions.ts @@ -1789,10 +1789,10 @@ function getFunctionNames(obj: object, prefix: string): string[] { for (const [key, value] of Object.entries(obj)) { if (key === "args") { continue; - } else if (typeof value == "function") { + } else if (typeof value === "function") { functionNames.push(prefix + key); - } else if (typeof value == "object") { - functionNames.push(...getFunctionNames(value, key + ".")); + } else if (typeof value === "object") { + functionNames.push(...getFunctionNames(value, `${prefix}${key}.`)); } } return functionNames;