LunaChat v2.0.1 : Fixed issue #26.
このコミットが含まれているのは:
1 親
fd674de72d
コミット
bd9d960fe4
6ファイル変更
+61
-53
検索条件に一致するファイルはありません
@@ -42,6 +42,8 @@ public class Channel implements ConfigurationSerializable {
|
||||
private static final String LIST_FORMAT = Resources.get("listFormat");
|
||||
|
||||
private static final String DEFAULT_FORMAT = Resources.get("defaultFormat");
|
||||
private static final String DEFAULT_FORMAT_FOR_PERSONAL =
|
||||
Resources.get("defaultFormatForPersonalChat");
|
||||
private static final String MSG_JOIN = Resources.get("joinMessage");
|
||||
private static final String MSG_QUIT = Resources.get("quitMessage");
|
||||
|
||||
@@ -103,12 +105,16 @@ public class Channel implements ConfigurationSerializable {
|
||||
this.name = name;
|
||||
this.description = "";
|
||||
this.members = new ArrayList<String>();
|
||||
this.format = DEFAULT_FORMAT;
|
||||
this.banned = new ArrayList<String>();
|
||||
this.moderator = new ArrayList<String>();
|
||||
this.password = "";
|
||||
this.visible = true;
|
||||
this.colorCode = "";
|
||||
|
||||
if ( name.contains(">") )
|
||||
this.format = DEFAULT_FORMAT_FOR_PERSONAL;
|
||||
else
|
||||
this.format = DEFAULT_FORMAT;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -273,6 +279,11 @@ public class Channel implements ConfigurationSerializable {
|
||||
*/
|
||||
private void sendJoinQuitMessage(boolean isJoin, String player) {
|
||||
|
||||
// 1:1チャットなら、入退室メッセージは表示しない
|
||||
if ( name.contains(">") ) {
|
||||
return;
|
||||
}
|
||||
|
||||
String msg;
|
||||
if ( isJoin ) {
|
||||
msg = MSG_JOIN;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする