fix preg bug

This commit is contained in:
dennydai 2016-05-12 18:20:21 +08:00
parent e553fbdab0
commit 9ca2683657
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<?php
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) {
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
$lines=file($value);