This commit is contained in:
Denny Dai
2015-06-30 22:44:40 +08:00
parent f94b5403f4
commit 1f1fd24782
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
if (preg_match("/^".preg_quote(TAG, '/')."help$/", $text)) {
if (preg_match("/^(".preg_quote(TAG, '/')."help)|(".preg_quote(TAG, '/').$plugin_name.preg_quote('@').BOT_NAME.")$/", $text)) {
foreach ($load_plugins as $value) {
$plugin_name = substr($value, strlen(PATH.'plugins'.DIRECTORY_SEPARATOR), -4);
$lines=file($value);