LunaChat v2.6.7 : Fixed issue #100

このコミットが含まれているのは:
ucchy committed 2014-09-01 12:39:21 +09:00
1 親 6128131b11
コミット 23559dfebf
13ファイル変更
+157 -7

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

+28
ファイルの表示
@@ -262,6 +262,34 @@ public class OptionCommand extends SubCommandAbst {
}
}
if ( options.containsKey("allowcc") ) {
// カラーコード使用可否
String pnode = PERMISSION_NODE + ".allowcc";
if ( !sender.hasPermission(pnode) ) {
sendResourceMessage(sender, PREERR,
"errmsgNotPermission", pnode);
} else {
String value = options.get("allowcc");
if ( value.equals("") || value.equalsIgnoreCase("false") ) {
channel.setAllowCC(false);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "allowcc", "false");
setOption = true;
} else if ( value.equalsIgnoreCase("true") ) {
channel.setAllowCC(true);
sendResourceMessage(sender, PREINFO,
"cmdmsgOption", "allowcc", "true");
setOption = true;
} else {
sendResourceMessage(sender, PREERR,
"errmsgInvalidBooleanOption", "allowcc");
}
}
}
if ( !channel.isGlobalChannel() ) {
if ( options.containsKey("password") ) {