X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fmain%2FSoneModule.kt;h=6657486984a59d91a5bea9bf90fa62a122a7e01c;hb=a1c8d845054f6adcc6ef98e46e7b578874cc866a;hp=8f018f5390af5a402cef2a925e19b971980570a1;hpb=a8050b466202bb6ddec8430129f728749cdfec1a;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/main/SoneModule.kt b/src/main/kotlin/net/pterodactylus/sone/main/SoneModule.kt index 8f018f5..6657486 100644 --- a/src/main/kotlin/net/pterodactylus/sone/main/SoneModule.kt +++ b/src/main/kotlin/net/pterodactylus/sone/main/SoneModule.kt @@ -67,6 +67,7 @@ open class SoneModule(private val sonePlugin: SonePlugin, private val eventBus: fun getCore(configuration: Configuration, freenetInterface: FreenetInterface, identityManager: IdentityManager, soneDownloader: SoneDownloader, imageInserter: ImageInserter, updateChecker: UpdateChecker, webOfTrustUpdater: WebOfTrustUpdater, eventBus: EventBus, database: Database) = Core(configuration, freenetInterface, identityManager, soneDownloader, imageInserter, updateChecker, webOfTrustUpdater, eventBus, database).apply { debugInformation.showVersionInformation = configuration.getBooleanValue("Debug/ShowVersionInformation").getValue(false) + debugInformation.showMetrics = configuration.getBooleanValue("Debug/ShowMetrics").getValue(false) }.also(eventBus::register) }