From fe021500c68000c2bd82eeb14b0ccdd4588ee0d0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 9 Sep 2022 06:18:59 -0400 Subject: [PATCH] *Call loadUtilFunctions before loading plugins --- src/plugin.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin.ts b/src/plugin.ts index 403b157..244350e 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -13,7 +13,7 @@ import { setSslContext, } from "./ssl.js"; import log from "loglevel"; -import { getSeed } from "./util.js"; +import { getSeed, loadUtilFunctions } from "./util.js"; import { getRouter, resetRouter, setRouter } from "./relay"; import { createIndependentFileSmall, @@ -118,6 +118,7 @@ export function getPluginAPI(): PluginApiManager { } export async function loadPlugins() { + await loadUtilFunctions(); for (const plugin of config.array("plugins")) { await getPluginAPI().loadPlugin(plugin); }