actually stripping colors attempt 2

This commit is contained in:
nikky 2018-05-24 20:07:32 +02:00
parent cee1673728
commit 0429407547
1 changed files with 2 additions and 1 deletions

View File

@ -19,12 +19,13 @@ object ServerChatHandler {
if (nextMessage?.gateway == cfg.connect.gateway) {
if (!nextMessage.text.isBlank()) {
nextMessage.text = nextMessage.text.stripColorIn
val message = when (nextMessage.event) {
"user_action" -> nextMessage.format(cfg.incoming.action)
"" -> {
// try to handle command and do not handle as a chat message
if (BridgeCommandRegistry.handleCommand(nextMessage)) return
nextMessage.format(cfg.incoming.chat.stripColorIn)
nextMessage.format(cfg.incoming.chat)
}
"join_leave" -> nextMessage.format(cfg.incoming.joinPart)
else -> {