actually stripping colors attempt 2
This commit is contained in:
parent
cee1673728
commit
0429407547
|
@ -19,12 +19,13 @@ object ServerChatHandler {
|
||||||
|
|
||||||
if (nextMessage?.gateway == cfg.connect.gateway) {
|
if (nextMessage?.gateway == cfg.connect.gateway) {
|
||||||
if (!nextMessage.text.isBlank()) {
|
if (!nextMessage.text.isBlank()) {
|
||||||
|
nextMessage.text = nextMessage.text.stripColorIn
|
||||||
val message = when (nextMessage.event) {
|
val message = when (nextMessage.event) {
|
||||||
"user_action" -> nextMessage.format(cfg.incoming.action)
|
"user_action" -> nextMessage.format(cfg.incoming.action)
|
||||||
"" -> {
|
"" -> {
|
||||||
// try to handle command and do not handle as a chat message
|
// try to handle command and do not handle as a chat message
|
||||||
if (BridgeCommandRegistry.handleCommand(nextMessage)) return
|
if (BridgeCommandRegistry.handleCommand(nextMessage)) return
|
||||||
nextMessage.format(cfg.incoming.chat.stripColorIn)
|
nextMessage.format(cfg.incoming.chat)
|
||||||
}
|
}
|
||||||
"join_leave" -> nextMessage.format(cfg.incoming.joinPart)
|
"join_leave" -> nextMessage.format(cfg.incoming.joinPart)
|
||||||
else -> {
|
else -> {
|
||||||
|
|
Loading…
Reference in New Issue