LunaChat v3.0.2 : Refined keyword replacement of strings.
このコミットが含まれているのは:
1 親
b9fcb18aac
コミット
7f877d0674
7ファイル変更
+694
-450
検索条件に一致するファイルはありません
@@ -109,17 +109,18 @@ public class MessageParser {
|
||||
" String msg = resources.getString(\"%s\");", key));
|
||||
result.add(String.format(
|
||||
" if ( msg == null ) return \"\";", key));
|
||||
result.add(" KeywordReplacer kr = new KeywordReplacer(msg);");
|
||||
|
||||
for ( String keyword : keywords ) {
|
||||
result.add(String.format(
|
||||
" msg = msg.replace(\"%%%s%%\", %s.toString());", keyword, keyword));
|
||||
" kr.replace(\"%%%s%%\", %s.toString());", keyword, keyword));
|
||||
}
|
||||
if ( key.startsWith("errmsg") ) {
|
||||
result.add(" return Utility.replaceColorCode(resources.getString(\"errorPrefix\", \"\") + msg);");
|
||||
result.add(" return Utility.replaceColorCode(resources.getString(\"errorPrefix\", \"\") + kr.toString());");
|
||||
} else if ( key.startsWith("cmdmsg") ) {
|
||||
result.add(" return Utility.replaceColorCode(resources.getString(\"infoPrefix\", \"\") + msg);");
|
||||
result.add(" return Utility.replaceColorCode(resources.getString(\"infoPrefix\", \"\") + kr.toString());");
|
||||
} else {
|
||||
result.add(" return Utility.replaceColorCode(msg);");
|
||||
result.add(" return Utility.replaceColorCode(kr.toString());");
|
||||
}
|
||||
result.add(" }");
|
||||
}
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする