fix: handleQuickOperation
This commit is contained in:
1 parent
35de00c4af
commit
553885d025
2 files changed
+7
-5
No files matched your search
+6
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user