LunaChat v2.6.7 : Fixed issue #100
このコミットが含まれているのは:
1 親
6128131b11
コミット
23559dfebf
13ファイル変更
+157
-7
検索条件に一致するファイルはありません
@@ -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") ) {
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする