fix
This commit is contained in:
@@ -18,8 +18,8 @@ require_once(PATH.'classes'.DIRECTORY_SEPARATOR.TYPE.DIRECTORY_SEPARATOR.'init.p
|
||||
|
||||
foreach ($load_plugins as $value) {
|
||||
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
|
||||
if (preg_match("/^".preg_quote(TAG, '/').$plugin_name." (.*)$/", $text, $matches)) {
|
||||
$plugin_text = $matches[1];
|
||||
if (preg_match("/^(".preg_quote(TAG, '/').$plugin_name."|".preg_quote(TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.") (.*)$/", $text, $matches)) {
|
||||
$plugin_text = $matches[2];
|
||||
$plugin_sendto = $from;
|
||||
require_once $value;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user