Skip to content

Commit

Permalink
fix: correctly release lock when content censor is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Samarium <28302241+Samarium150@users.noreply.github.com>
  • Loading branch information
Samarium150 committed Feb 9, 2022
1 parent 72dc355 commit 7271657
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "io.github.samarium150"
version = "1.6.0"
version = "1.6.1"

repositories {
mavenLocal()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ object MiraiConsoleDriftBottle : KotlinPlugin(
JvmPluginDescription(
id = "io.github.samarium150.mirai.plugin.mirai-console-drift-bottle",
name = "Drift Bottle",
version = "1.6.0",
version = "1.6.1",
) {
author("Samarium150")
info("简单的漂流瓶插件")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ object ThrowAway : SimpleCommand(
if (GeneralConfig.enableContentCensor) runCatching {
if (!ContentCensor.determine(chain)) {
sendMessage(ReplyConfig.invalid)
unlock(sender.id)
return
}
}.onFailure {
Expand Down

0 comments on commit 7271657

Please sign in to comment.