mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-30 10:50:18 +08:00
Fix build
This commit is contained in:
parent
0662e48fd2
commit
c66eebfda4
@ -91,15 +91,16 @@ internal fun Contact.logMessageSent(message: Message) {
|
||||
}
|
||||
}
|
||||
|
||||
internal fun MessageEvent.logMessageReceived() {
|
||||
@Suppress("RemoveRedundantQualifierName") // compiler bug
|
||||
internal fun net.mamoe.mirai.event.events.MessageEvent.logMessageReceived() {
|
||||
when (this) {
|
||||
is GroupMessageEvent -> bot.logger.verbose {
|
||||
is net.mamoe.mirai.event.events.GroupMessageEvent -> bot.logger.verbose {
|
||||
"[${group.name}(${group.id})] ${senderName}(${sender.id}) -> $message".replaceMagicCodes()
|
||||
}
|
||||
is TempMessageEvent -> bot.logger.verbose {
|
||||
is net.mamoe.mirai.event.events.TempMessageEvent -> bot.logger.verbose {
|
||||
"[${group.name}(${group.id})] $senderName(Temp ${sender.id}) -> $message".replaceMagicCodes()
|
||||
}
|
||||
is FriendMessageEvent -> bot.logger.verbose {
|
||||
is net.mamoe.mirai.event.events.FriendMessageEvent -> bot.logger.verbose {
|
||||
"${sender.nick}(${sender.id}) -> $message".replaceMagicCodes()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user