fix: handleQuickOperation

This commit is contained in:
bietiaop committed 2024-12-17 00:27:56 +08:00
1 parent 35de00c4af
commit 553885d025
2 files changed
+7 -5

No files matched your search

+6 -1
View File
@@ -215,7 +215,12 @@ export class NapCatOneBot11Adapter {
await this.networkManager.closeSomeAdaterWhenOpen([existingAdapter]);
}
} else if (adapterConfig.enable) {
const newAdapter = new adapterClass(adapterConfig.name, adapterConfig, this.core, this.actions);
let newAdapter = new adapterClass( adapterConfig.name, adapterConfig, this.core, this.actions );
if (adapterClass === OB11ActiveHttpAdapter) {
newAdapter = new adapterClass(adapterConfig.name, adapterConfig, this.core, this, this.actions);
}
await this.networkManager.registerAdapterAndOpen(newAdapter);
}
}