Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Shamrock: typo log
Browse files Browse the repository at this point in the history
  • Loading branch information
whitechi73 committed Feb 16, 2024
1 parent 3395cd9 commit 5841304
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,20 @@ internal object AioListener : IKernelMsgListener {
MsgConstant.KCHATTYPETEMPC2CFROMGROUP -> {
if (!ShamrockConfig.allowTempSession()) return

LogCenter.log("私聊临时消息(private = ${record.senderUin}, id = $msgHash, msg = $rawMsg)")
ShamrockConfig.getPrivateRule()?.let { rule ->
if (!rule.black.isNullOrEmpty() && rule.black.contains(record.senderUin)) return
if (!rule.white.isNullOrEmpty() && !rule.white.contains(record.senderUin)) return
}


var groupCode = 0L
var fromNick = ""
MsgSvc.getTempChatInfo(record.chatType, record.senderUid).onSuccess {
groupCode = it.groupCode.toLong()
fromNick = it.fromNick
}

LogCenter.log("私聊临时消息(private = ${record.senderUin}, groupId=$groupCode, id = $msgHash, msg = $rawMsg)")

if (!GlobalEventTransmitter.MessageTransmitter.transPrivateMessage(
record,
record.elements,
Expand Down

0 comments on commit 5841304

Please sign in to comment.