Skip to content

Commit a026958

Browse files
committed
Fix bugs on WhitelistHelper.kt & Update dependency
1 parent 7724a97 commit a026958

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ subprojects {
2525
repositories {
2626
mavenCentral()
2727
maven("https://jitpack.io")
28+
maven("https://repo.panda-lang.org/releases")
2829
}
2930

3031
dependencies {
3132
compileOnly("com.github.RegadPoleCN:onebot-client:f73b158fc4")
32-
taboo("com.github.SNWCreations:KookBC:0.27.4")
33+
taboo("com.github.SNWCreations:KookBC:0.28.0")
3334
compileOnly("ink.ptms.core:v12004:12004:mapped")
3435
compileOnly("ink.ptms.core:v12004:12004:universal")
3536
compileOnly(kotlin("stdlib"))

common/src/main/kotlin/me/regadpole/plumbot/internal/WhitelistHelper.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import me.regadpole.plumbot.PlumBot
66
class WhitelistHelper {
77
fun checkCount(user: String): Boolean {
88
val idList = PlumBot.getDatabase().getBind(user).values
9-
val maxCount: Int = PlumBot.getConfig().getConfig().whiteList.maxCount
9+
val maxCount: Int = PlumBot.getConfig().getConfig().groups.forwarding.whitelist.maxCount
1010
if (idList.isEmpty()) return true
1111
return idList.size < maxCount
1212
}

0 commit comments

Comments
 (0)