Skip to content

Commit 54c2a2b

Browse files
committed
fix: private channels sending msg to discord
1 parent 53afc5b commit 54c2a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatty-paper/src/main/kotlin/com/mineinabyss/chatty/listeners/DiscordListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class DiscordListener {
4949
@Subscribe(priority = ListenerPriority.NORMAL)
5050
fun GameChatMessagePreProcessEvent.onChat() {
5151
val channel = player.toGeary().get<ChannelData>()?.withChannelVerified()?.channel ?: return
52-
val baseMessage = messageComponent.children().lastOrNull()?.toComponent() ?: return
52+
val baseMessage = messageComponent.children().lastOrNull()?.toComponent() ?: messageComponent.toComponent()
5353
val filteredMessage = handleChatFilters(baseMessage, player, null, true)?.toComponentDSV()
5454
if (!channel.discordsrv || filteredMessage == null) isCancelled = true
5555
else messageComponent = filteredMessage

0 commit comments

Comments
 (0)