From 6aed9c9e0252b0c8f681a358e5a8707271454137 Mon Sep 17 00:00:00 2001 From: Agando Date: Mon, 1 Jun 2026 06:00:39 +0200 Subject: auto: 2026-06-01_06:00 changes --- modules/ext/busybox.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/ext') diff --git a/modules/ext/busybox.js b/modules/ext/busybox.js index 709324f..34221f8 100644 --- a/modules/ext/busybox.js +++ b/modules/ext/busybox.js @@ -57,8 +57,12 @@ class BusyBoxModule { const keys = Object.keys(all); if (all[query]) { - const mod = this.terminal.moduleManager._findModuleForCommand(query); - const src = mod ? ` (from ${mod.constructor.name})` : ''; + let foundMod = null; + for (const modName in this.terminal.moduleManager.modules) { + const mod = this.terminal.moduleManager.modules[modName]; + if (mod.commands && mod.commands[query]) { foundMod = mod; break; } + } + const src = foundMod ? ` (from ${foundMod.constructor.name})` : ''; return this.terminal.print(`${query}${src}`, 'info'); } -- cgit v1.2.3