fix preg bug
This commit is contained in:
parent
e553fbdab0
commit
9ca2683657
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
foreach ($TAGs as $TAG) {
|
foreach ($TAGs as $TAG) {
|
||||||
if (preg_match("/^(".preg_quote($TAG, '/')."help)|(".preg_quote($TAG, '/')."help".preg_quote('@').BOT_NAME.")$/", $text)) {
|
if (preg_match("/^(".preg_quote($TAG, '/')."help|".preg_quote($TAG, '/')."help".preg_quote('@').BOT_NAME.")$/", $text)) {
|
||||||
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);
|
||||||
$lines=file($value);
|
$lines=file($value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user