新コマンドについて、名前欄に!nocmdで発動しないようにする処理を追加

This commit is contained in:
konkon-fox 2023-10-27 14:29:00 +09:00
parent a652cecf04
commit ea43aea341
3 changed files with 9 additions and 0 deletions

View File

@ -32,6 +32,9 @@ function applyChttCommand(
if(!($supervisor || $admin)) {
return;
}
if (strpos($_POST['name'], '!nocmd') !== false) {
return;
}
if(strpos($_POST['comment'], '!chtt:') === false) {
return;
}

View File

@ -7,6 +7,9 @@ function applyDiceCommand($SETTING)
if ($SETTING['commands'] !== 'checked') {
return;
}
if (strpos($_POST['name'], '!nocmd') !== false) {
return;
}
if (!preg_match('/\![1-9]+[0-9]*[dD][1-9]+[0-9]*/', $_POST['comment'])) {
return;
}

View File

@ -30,6 +30,9 @@ function applyPoolCommand(
if(!($supervisor || $admin)) {
return;
}
if (strpos($_POST['name'], '!nocmd') !== false) {
return;
}
if(strpos($_POST['comment'], '!pool') === false) {
return;
}