Skip to content

Commit

Permalink
LunaChat v3.0.13 : Fixed issue #206
Browse files Browse the repository at this point in the history
  • Loading branch information
ucchyocean committed Sep 6, 2020
1 parent 9e3c5ec commit d7f735c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/com/github/ucchyocean/lc3/channel/Channel.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ public void chat(ChannelMember player, String message) {
// チャンネルで許可されていて、発言者がパーミッションを持っている場合に置き換える
if ( isAllowCC() && player.hasPermission("lunachat.allowcc") ) {
maskedMessage = Utility.replaceColorCode(maskedMessage);
} else {
maskedMessage = Utility.stripColorCode(maskedMessage);
}

// LunaChatChannelChatEvent イベントコール
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/ucchyocean/lc3/util/Utility.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private static String replaceWebColorCode(String source) {
}

/**
* 文字列に含まれているカラーコード(§a)を除去して返す
* 文字列に含まれているカラーコード(§a)やカラーコード候補(&aや#99AABB)を除去して返す
* @param source 置き換え元の文字列
* @return 置き換え後の文字列
*/
Expand Down

0 comments on commit d7f735c

Please sign in to comment.