This commit is contained in:
Denny Dai
2015-06-30 14:11:15 +08:00
parent e321324785
commit 3cc20a8a89
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
PluginList("echo", "Echo what you typed.");
if (preg_match("/^".TAG."echo (.*)$/", $text, $matches)) {
if (preg_match("/^".preg_quote(TAG, '/')."echo (.*)$/", $text, $matches)) {
$BOT->msg($from, $matches[1]);
}