performance improved
This commit is contained in:
parent
8b619fc0f9
commit
eb062d5412
@ -14,7 +14,9 @@ foreach ($load_plugins as $key => $value) {
|
|||||||
unset($load_plugins[$key]);
|
unset($load_plugins[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach ($TAGs as $TAG) {
|
if (in_array(substr($text, 0, 1),$TAGs)) {
|
||||||
|
$TAG = substr($text, 0, 1);
|
||||||
|
}
|
||||||
foreach ($load_plugins as $value) {
|
foreach ($load_plugins as $value) {
|
||||||
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
|
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
|
||||||
if (preg_match("/^(".preg_quote($TAG, '/').$plugin_name."|".preg_quote($TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.") (.*)$/", $text, $matches)) {
|
if (preg_match("/^(".preg_quote($TAG, '/').$plugin_name."|".preg_quote($TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.") (.*)$/", $text, $matches)) {
|
||||||
@ -28,7 +30,6 @@ foreach ($TAGs as $TAG) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
require_once PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php';
|
require_once PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php';
|
||||||
|
|
||||||
//function
|
//function
|
||||||
|
@ -14,7 +14,9 @@ foreach ($load_plugins as $key => $value) {
|
|||||||
unset($load_plugins[$key]);
|
unset($load_plugins[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach ($TAGs as $TAG) {
|
if (in_array(substr($text, 0, 1),$TAGs)) {
|
||||||
|
$TAG = substr($text, 0, 1);
|
||||||
|
}
|
||||||
foreach ($load_plugins as $value) {
|
foreach ($load_plugins as $value) {
|
||||||
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
|
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
|
||||||
if (preg_match("/^(".preg_quote($TAG, '/').$plugin_name."|".preg_quote($TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.") (.*)$/", $text, $matches)) {
|
if (preg_match("/^(".preg_quote($TAG, '/').$plugin_name."|".preg_quote($TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.") (.*)$/", $text, $matches)) {
|
||||||
@ -28,7 +30,6 @@ foreach ($TAGs as $TAG) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
require_once PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php';
|
require_once PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php';
|
||||||
|
|
||||||
//function
|
//function
|
||||||
|
@ -14,7 +14,9 @@ foreach ($load_plugins as $key => $value) {
|
|||||||
unset($load_plugins[$key]);
|
unset($load_plugins[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach ($TAGs as $TAG) {
|
if (in_array(substr($text, 0, 1),$TAGs)) {
|
||||||
|
$TAG = substr($text, 0, 1);
|
||||||
|
}
|
||||||
foreach ($load_plugins as $value) {
|
foreach ($load_plugins as $value) {
|
||||||
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
|
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
|
||||||
if (preg_match("/^(".preg_quote($TAG, '/').$plugin_name."|".preg_quote($TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.") (.*)$/", $text, $matches)) {
|
if (preg_match("/^(".preg_quote($TAG, '/').$plugin_name."|".preg_quote($TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.") (.*)$/", $text, $matches)) {
|
||||||
@ -28,7 +30,6 @@ foreach ($TAGs as $TAG) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
require_once PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php';
|
require_once PATH.'plugins'.DIRECTORY_SEPARATOR.'help.php';
|
||||||
|
|
||||||
//function
|
//function
|
||||||
|
Loading…
Reference in New Issue
Block a user