Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dkim19375 committed May 16, 2021
1 parent f52c078 commit 32d836a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding 'UTF-8'

group 'me.dkim19375'
version '2.2.3'
version '2.2.4'

//noinspection GrUnresolvedAccess
compileKotlin.kotlinOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ open class SpecialEventsManager(private val bot: BotBase) : ListenerAdapter() {
reaction: MessageReaction.ReactionEmote? = null,
debug: Boolean = false
) {
val actionVar: (Event) -> Future<Boolean> = actionLabel@{ event ->
@Suppress("DuplicatedCode") val actionVar: (Event) -> Future<Boolean> = actionLabel@{ event ->
val future = CompletableFuture<Boolean>()
if (debug) {
println("called ------------")
Expand Down Expand Up @@ -184,11 +184,11 @@ open class SpecialEventsManager(private val bot: BotBase) : ListenerAdapter() {
}
retrievedMessage.queue message@{ msg ->
jda.retrieveUserById(userId).queue userQ@{ user ->
if (whitelist?.contains(userId) != false) {
if (whitelist?.contains(userId) == false) {
if (debug) {
println("no whitelist")
}
if (!removeIfNoPerms) {
if (debug) {
println("no whitelist")
}
future.complete(false)
return@userQ
}
Expand Down

0 comments on commit 32d836a

Please sign in to comment.