Skip to content

Commit

Permalink
Update Lolicon.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
cikiPAD authored Dec 14, 2023
1 parent 897b2c8 commit d95a114
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/kotlin/command/Lolicon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -769,11 +769,11 @@ object Lolicon : CompositeCommand(
suspend fun CommandSenderOnMessage<MessageEvent>.reloadcache(reqNum: String = "") {
if (fromEvent !is GroupMessageEvent && fromEvent !is FriendMessageEvent)
return
if (fromEvent is GroupMessageEvent && !(fromEvent as GroupMessageEvent).sender.isOperator()) {
sendMessage(ReplyConfig.nonAdminPermissionDenied)
return
}
if (fromEvent is FriendMessageEvent && !this.hasPermission(trusted)) {
// if (fromEvent is GroupMessageEvent && !(fromEvent as GroupMessageEvent).sender.isOperator()) {
// sendMessage(ReplyConfig.nonAdminPermissionDenied)
// return
// }
if (!this.hasPermission(trusted)) {
sendMessage(ReplyConfig.untrusted)
return
}
Expand Down

0 comments on commit d95a114

Please sign in to comment.