LunaChat v2.6.5 : Fixed issue #95

このコミットが含まれているのは:
ucchy committed 2014-06-29 03:22:22 +09:00
1 親 89a8decae6
コミット 3dfd6d03be
2ファイル変更
+32 -22

検索条件に一致するファイルはありません

+31 -21
ファイルの表示
@@ -181,10 +181,12 @@ public class ChannelImpl extends Channel {
if ( !isGlobalChannel() ) {
getBanned().add(player);
removeMember(player);
String m = replaceKeywordsForSystemMessages(
MSG_BAN_NGWORD, player.getName());
player.sendMessage(m);
sendMessage(null, m, null, true);
if ( !MSG_BAN_NGWORD.equals("") ) {
String m = replaceKeywordsForSystemMessages(
MSG_BAN_NGWORD, player.getName());
player.sendMessage(m);
sendMessage(null, m, null, true);
}
}
} else if ( config.getNgwordAction() == NGWordAction.KICK ) {
@@ -192,10 +194,12 @@ public class ChannelImpl extends Channel {
if ( !isGlobalChannel() ) {
removeMember(player);
String m = replaceKeywordsForSystemMessages(
MSG_KICK_NGWORD, player.getName());
player.sendMessage(m);
sendMessage(null, m, null, true);
if ( !MSG_KICK_NGWORD.equals("") ) {
String m = replaceKeywordsForSystemMessages(
MSG_KICK_NGWORD, player.getName());
player.sendMessage(m);
sendMessage(null, m, null, true);
}
}
} else if ( config.getNgwordAction() == NGWordAction.MUTE ) {
@@ -203,10 +207,12 @@ public class ChannelImpl extends Channel {
getMuted().add(player);
save();
String m = replaceKeywordsForSystemMessages(
MSG_MUTE_NGWORD, player.getName());
player.sendMessage(m);
sendMessage(null, m, null, true);
if ( !MSG_MUTE_NGWORD.equals("") ) {
String m = replaceKeywordsForSystemMessages(
MSG_MUTE_NGWORD, player.getName());
player.sendMessage(m);
sendMessage(null, m, null, true);
}
}
}
}
@@ -380,7 +386,7 @@ public class ChannelImpl extends Channel {
}
// 受信者が自分以外いない場合は、メッセージを表示する
if ( isRangeChat && (
if ( !MSG_NO_RECIPIENT.equals("") && isRangeChat && (
recipients.size() == 0 ||
(recipients.size() == 1 &&
recipients.get(0).getName().equals(player.getName()) ) ) ) {
@@ -532,11 +538,13 @@ public class ChannelImpl extends Channel {
save();
// メッセージ通知を流す
String msg = replaceKeywords(MSG_BAN_EXPIRED, cp);
sendMessage(null, msg, null, false);
if ( !MSG_BAN_EXPIRED.equals("") ) {
String msg = replaceKeywords(MSG_BAN_EXPIRED, cp);
sendMessage(null, msg, null, false);
}
if ( cp.isOnline() ) {
msg = PREINFO + String.format(MSG_BAN_EXPIRED_PLAYER, getName());
if ( cp.isOnline() && !MSG_BAN_EXPIRED_PLAYER.equals("") ) {
String msg = PREINFO + String.format(MSG_BAN_EXPIRED_PLAYER, getName());
cp.sendMessage(msg);
}
}
@@ -554,11 +562,13 @@ public class ChannelImpl extends Channel {
save();
// メッセージ通知を流す
String msg = replaceKeywords(MSG_MUTE_EXPIRED, cp);
sendMessage(null, msg, null, false);
if ( !MSG_MUTE_EXPIRED.equals("") ) {
String msg = replaceKeywords(MSG_MUTE_EXPIRED, cp);
sendMessage(null, msg, null, false);
}
if ( cp.isOnline() ) {
msg = PREINFO + String.format(MSG_MUTE_EXPIRED_PLAYER, getName());
if ( cp.isOnline() && !MSG_MUTE_EXPIRED_PLAYER.equals("") ) {
String msg = PREINFO + String.format(MSG_MUTE_EXPIRED_PLAYER, getName());
cp.sendMessage(msg);
}
}
+1 -1
ファイルの表示
@@ -385,7 +385,7 @@ public class ChannelManager implements LunaChatAPI {
if ( channel != null ) {
// 強制解散のメッセージを、残ったメンバーに流す
if ( !channel.isPersonalChat() ) {
if ( !channel.isPersonalChat() && !MSG_BREAKUP.equals("") ) {
String message = new String(MSG_BREAKUP);
message = message.replace("%ch", channel.getName());
message = message.replace("%color", channel.getColorCode());